use explicit async/await in marine_worker

This commit is contained in:
Valery Antopol 2024-04-26 14:00:31 +04:00
parent 381ab6adaf
commit 14a88a99aa

View File

@ -127,7 +127,7 @@ const toExpose = {
onLogMessage.complete(); onLogMessage.complete();
}, },
callService: ( callService: async (
serviceId: string, serviceId: string,
functionName: string, functionName: string,
args: JSONArray | JSONObject, args: JSONArray | JSONObject,
@ -139,7 +139,7 @@ const toExpose = {
throw new Error(`service with id=${serviceId} not found`); throw new Error(`service with id=${serviceId} not found`);
} }
return srv.call(functionName, args, callParams); return await srv.call(functionName, args, callParams);
}, },
onLogMessage() { onLogMessage() {