From 552143e3458bdbd0890fb95a4f38c73bf4e9b22d Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 25 Sep 2023 09:30:52 +0200 Subject: [PATCH] quota/tokenCount: Rename single variable name to something that has more sense I forgot to rename it when I commited it last time ;-; --- src/quota/tokenCount.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }; }