Skip to content

Commit

Permalink
fix rate limit check never ends (#13994)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Jun 14, 2024
1 parent c51347d commit 220e112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/RateLimiterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 220e112

Please sign in to comment.