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:
parent
94992743e8
commit
552143e345
1 changed files with 2 additions and 2 deletions
|
@ -121,14 +121,14 @@ export default class tokenCount implements IQuota {
|
|||
): Promise<userQuotaRecoveryData> {
|
||||
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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue