From 14a88a99aa8fa002f5e593b095e1c2584a6d49c2 Mon Sep 17 00:00:00 2001 From: Valery Antopol Date: Fri, 26 Apr 2024 14:00:31 +0400 Subject: [PATCH] use explicit async/await in marine_worker --- packages/core/marine-worker/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/marine-worker/src/index.ts b/packages/core/marine-worker/src/index.ts index e94e1f47..da381724 100644 --- a/packages/core/marine-worker/src/index.ts +++ b/packages/core/marine-worker/src/index.ts @@ -127,7 +127,7 @@ const toExpose = { onLogMessage.complete(); }, - callService: ( + callService: async ( serviceId: string, functionName: string, args: JSONArray | JSONObject, @@ -139,7 +139,7 @@ const toExpose = { throw new Error(`service with id=${serviceId} not found`); } - return srv.call(functionName, args, callParams); + return await srv.call(functionName, args, callParams); }, onLogMessage() {