Skip to content

Commit

Permalink
fix: rl
Browse files Browse the repository at this point in the history
  • Loading branch information
bigint committed Jul 9, 2024
1 parent cea639d commit ce4d7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/helpers/middlewares/rateLimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const rateLimiter = ({
requests: number;
within: number;
}) => {
const rateLimiter = createRateLimiter(requests, within);
const rateLimiter = createRateLimiter(within, requests);

return (req: Request, res: Response, next: NextFunction) => {
rateLimiter(req, res, next);
Expand Down

0 comments on commit ce4d7fd

Please sign in to comment.