Skip to content

Commit

Permalink
chore: move next() into scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Oct 29, 2024
1 parent 8831f6e commit fc24a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/middlewares/wares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export function rateLimit(options: { windowMs: number; max: number }) {
}
if (ip) {
hits.set(ip, record);
await next();
} else {
// throws when resetting local. Might not be required at all but was for debugging
// throw new HTTPException(400, { message: "Bad Request" });
}
await next();
};
}

Expand Down

0 comments on commit fc24a23

Please sign in to comment.