diff --git a/src/modules/users/users.service.ts b/src/modules/users/users.service.ts index 94f1165..d140b35 100644 --- a/src/modules/users/users.service.ts +++ b/src/modules/users/users.service.ts @@ -65,7 +65,16 @@ export class UsersService { async getDailyQuotaOfUser(senderAddress: string, tokenReceivedAddress: string) { const [dailyQuota, totalamount] = await Promise.all([ - this.commonConfigRepository.getCommonConfig(), + this.commonConfigRepository.findOne({ + where: { + fromAddress: tokenReceivedAddress, + }, + select: { + fromAddress: true, + id: true, + dailyQuota: true, + }, + }), this.eventLogRepository.sumAmountBridgeOfUserInDay(senderAddress, tokenReceivedAddress), ]);