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:
Timur Gordon
2025-11-04 17:13:01 +01:00
parent b8ef14d06c
commit 1a23a97e38

View File

@@ -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())