From 892ab9c45c48b5b1e4be3aee621adac8b0ddc69b Mon Sep 17 00:00:00 2001 From: Yoojin Ko Date: Wed, 6 Dec 2023 11:46:33 +0900 Subject: [PATCH] fix: isRunning to checkRunning --- src/controllers/serviceController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/serviceController.ts b/src/controllers/serviceController.ts index 0371daf..a21c0d0 100644 --- a/src/controllers/serviceController.ts +++ b/src/controllers/serviceController.ts @@ -47,7 +47,7 @@ export default class ServiceController { } async chargeCredit(serviceName: string, amount: number): Promise { - this.isRunning(serviceName); + this.checkRunning(serviceName); const transferKey = Date.now(); const userAddress = this.ain.getAddress(); const depositAddress = await this.getDepositAddress(serviceName); @@ -77,7 +77,7 @@ export default class ServiceController { } async request(serviceName: string, requestData: string) : Promise { - this.isRunning(serviceName); + this.checkRunning(serviceName); const result = await new Promise(async (resolve, reject) => { const requestKey = Date.now(); const requesterAddress = this.ain.getAddress();