fix rate limit check never ends (#13994)
This commit is contained in:
parent
c51347d78b
commit
220e112c83
|
@ -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 New Issue