fix: change callModule wrapper signature and correctly call callModule
This commit is contained in:
parent
74f2b7dba3
commit
2adbddc769
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue