diff --git a/app/api/admin/reset-all/route.ts b/app/api/admin/reset-all/route.ts index 4800be0..60f0e31 100644 --- a/app/api/admin/reset-all/route.ts +++ b/app/api/admin/reset-all/route.ts @@ -13,7 +13,7 @@ export async function POST(request: NextRequest) { if (lastReset.length > 0) { const lastResetTime = new Date(lastReset[0].timestamp).getTime() const now = new Date().getTime() - const cooldownMs = 2 * 60 * 1000 // 2 minutes in milliseconds + const cooldownMs = 2 * 60 * 10 // 2 minutes in milliseconds const timeSinceReset = now - lastResetTime @@ -26,7 +26,7 @@ export async function POST(request: NextRequest) { }) if (timeSinceReset < cooldownMs) { - const remainingSeconds = Math.ceil((cooldownMs - timeSinceReset) / 1000) + const remainingSeconds = Math.ceil((cooldownMs - timeSinceReset) / 10) return NextResponse.json( { error: `יש להמתין ${remainingSeconds} שניות בין איפוסים`,