From 2adbddc769e00767541e27efbef3fd237eb68e2d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 29 Jul 2023 19:48:21 -0400 Subject: [PATCH] fix: change callModule wrapper signature and correctly call callModule --- src/module/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module/client.ts b/src/module/client.ts index 26b6cc2..daa64c7 100644 --- a/src/module/client.ts +++ b/src/module/client.ts @@ -39,8 +39,8 @@ export abstract class Client extends Emittery { public getBound(module: string): ModuleBagBound { return { - callModule: async (...args: any) => { - const ret = await this.callModule(module, ...args); + callModule: async (method: string, data?: any) => { + const ret = await callModule(module, method, data); this.handleError(ret); return ret;