Update app/api/admin/field-reset/route.ts

This commit is contained in:
2025-06-23 13:06:37 +03:00
parent 13803bf65e
commit ba050ca243

View File

@@ -36,7 +36,7 @@ export async function POST(request: NextRequest) {
const cooldownMs = 30 * 10 // 30 seconds for field resets
if (now - lastResetTime < cooldownMs) {
const remainingSeconds = Math.ceil((cooldownMs - (now - lastResetTime)) / 1000)
const remainingSeconds = Math.ceil((cooldownMs - (now - lastResetTime)) / 10)
return NextResponse.json({ error: "יש להמתין 30 שניות בין איפוסי מסגרת", remainingSeconds }, { status: 429 })
}