fix: change callModule wrapper signature and correctly call callModule

This commit is contained in:
Derrick Hammer 2023-07-29 19:48:21 -04:00
parent 74f2b7dba3
commit 2adbddc769
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -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;