Skip to content

Commit

Permalink
fix: isRunning to checkRunning
Browse files Browse the repository at this point in the history
  • Loading branch information
yoojinko committed Dec 6, 2023
1 parent 0eca3db commit 892ab9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/serviceController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class ServiceController {
}

async chargeCredit(serviceName: string, amount: number): Promise<string> {
this.isRunning(serviceName);
this.checkRunning(serviceName);
const transferKey = Date.now();
const userAddress = this.ain.getAddress();
const depositAddress = await this.getDepositAddress(serviceName);
Expand Down Expand Up @@ -77,7 +77,7 @@ export default class ServiceController {
}

async request(serviceName: string, requestData: string) : Promise<string> {
this.isRunning(serviceName);
this.checkRunning(serviceName);
const result = await new Promise(async (resolve, reject) => {
const requestKey = Date.now();
const requesterAddress = this.ain.getAddress();
Expand Down

0 comments on commit 892ab9c

Please sign in to comment.