Update app/api/admin/department-reset/route.ts
This commit is contained in:
@@ -45,7 +45,7 @@ export async function POST(request: NextRequest) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (timeSinceReset < cooldownMs) {
|
if (timeSinceReset < cooldownMs) {
|
||||||
const remainingSeconds = Math.ceil((cooldownMs - timeSinceReset) / 1000)
|
const remainingSeconds = Math.ceil((cooldownMs - timeSinceReset) / 10)
|
||||||
return NextResponse.json(
|
return NextResponse.json(
|
||||||
{
|
{
|
||||||
error: `יש להמתין ${remainingSeconds} שניות בין איפוסי מסגרת`,
|
error: `יש להמתין ${remainingSeconds} שניות בין איפוסי מסגרת`,
|
||||||
|
|||||||
Reference in New Issue
Block a user