difftreelog
fix use getApi instead of direct check
in: master
1 file changed
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth554 }554 }555555556 constructApiCall(apiCall: string, params: any[]) {556 constructApiCall(apiCall: string, params: any[]) {557 if(this.api === null) throw Error('API not initialized');558 if(!apiCall.startsWith('api.')) throw Error(`Invalid api call: ${apiCall}`);557 if(!apiCall.startsWith('api.')) throw Error(`Invalid api call: ${apiCall}`);559 let call = this.getApi() as any;558 let call = this.getApi() as any;560 for(const part of apiCall.slice(4).split('.')) {559 for(const part of apiCall.slice(4).split('.')) {