quota/tokenCount: Rename single variable name to something that has more sense

I forgot to rename it when I commited it last time ;-;
This commit is contained in:
Wroclaw 2023-09-25 09:30:52 +02:00
parent 94992743e8
commit 552143e345

View file

@ -121,14 +121,14 @@ export default class tokenCount implements IQuota {
): Promise<userQuotaRecoveryData> { ): Promise<userQuotaRecoveryData> {
const userId = typeof user ==="string" ? user : user.id; 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.checkUser(userId, request),
this.findNthUsage(userId, request.createdTimestamp, unitCount) this.findNthUsage(userId, request.createdTimestamp, unitCount)
]); ]);
return { return {
...userQuota, ...userQuota,
recoveryTimestamp: (renameMebecause.at(0)?.timestamp.valueOf() ?? Infinity) + this.lookback, recoveryTimestamp: (overUnitCountRecord.at(0)?.timestamp.valueOf() ?? Infinity) + this.lookback,
}; };
} }