mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 03:40:25 +01:00
fix rate limit check never ends
This commit is contained in:
parent
c51347d78b
commit
03c2919b69
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue