Skip to content

Commit

Permalink
fix: Don't allow max+1 calls
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Dec 31, 2023
1 parent 5ead886 commit acc3eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/v0/check_email/checkUserInDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function checkUserInDB(req: NextRequest): Promise<UserWithSub> {
max
);

if (numberOfCalls > max) {
if (numberOfCalls >= max) {
throw newEarlyResponse(
Response.json(
{
Expand Down

1 comment on commit acc3eb1

@vercel
Copy link

@vercel vercel bot commented on acc3eb1 Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.