git.delta.rocks / unique-network / refs/commits / 6678c1e6f932

difftreelog

fix use getApi instead of direct check

Daniel Shiposha2022-09-23parent: #146f44d.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
554 }554 }
555555
556 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('.')) {