feat: raise submit rate limit to 2 per minute
This commit is contained in:
parent
412b0e775b
commit
ec1c19204d
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ export async function POST(request: NextRequest) {
|
|||
const session = await auth();
|
||||
if (!session) return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
|
||||
|
||||
const rateLimit = new RateLimit(request, 1);
|
||||
const rateLimit = new RateLimit(request, 2);
|
||||
const check = await rateLimit.handle();
|
||||
if (check) return check;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue