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 {
|
public getBound(module: string): ModuleBagBound {
|
||||||
return {
|
return {
|
||||||
callModule: async (...args: any) => {
|
callModule: async (method: string, data?: any) => {
|
||||||
const ret = await this.callModule(module, ...args);
|
const ret = await callModule(module, method, data);
|
||||||
this.handleError(ret);
|
this.handleError(ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue