fix rate limit check never ends

This commit is contained in:
anatawa12 2024-06-14 15:36:58 +09:00
parent c51347d78b
commit 03c2919b69
No known key found for this signature in database
GPG Key ID: 9CA909848B8E4EA6
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export class RateLimiterService {
return reject({ code: 'BRIEF_REQUEST_INTERVAL', info });
} else {
if (hasLongTermLimit) {
return max;
return max.then(ok, reject);
} else {
return ok();
}