Fix WASM client: use correct method name 'job.run' instead of 'jobs.run'
- Changed method call from 'jobs.run' to 'job.run' to match OpenRPC spec - This fixes 'Method not found' errors when calling run_job from WASM - Native client was already using correct method name
This commit is contained in:
@@ -313,7 +313,7 @@ impl WasmSupervisorClient {
|
||||
}
|
||||
}]);
|
||||
|
||||
match self.call_method("jobs.run", params).await {
|
||||
match self.call_method("job.run", params).await {
|
||||
Ok(result) => {
|
||||
if let Some(result_str) = result.as_str() {
|
||||
Ok(result_str.to_string())
|
||||
|
||||
Reference in New Issue
Block a user