diff --git a/src/quota/tokenCount.ts b/src/quota/tokenCount.ts index 47e9e99..4c24fbb 100644 --- a/src/quota/tokenCount.ts +++ b/src/quota/tokenCount.ts @@ -121,14 +121,14 @@ export default class tokenCount implements IQuota { ): Promise { const userId = typeof user ==="string" ? user : user.id; - const [userQuota, renameMebecause] = await Promise.all([ + const [userQuota, overUnitCountRecord] = await Promise.all([ this.checkUser(userId, request), this.findNthUsage(userId, request.createdTimestamp, unitCount) ]); return { ...userQuota, - recoveryTimestamp: (renameMebecause.at(0)?.timestamp.valueOf() ?? Infinity) + this.lookback, + recoveryTimestamp: (overUnitCountRecord.at(0)?.timestamp.valueOf() ?? Infinity) + this.lookback, }; }