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

This commit is contained in:
2025-06-23 13:06:14 +03:00
parent 38cdc8f523
commit 13803bf65e

View File

@@ -32,7 +32,7 @@ export async function POST(request: NextRequest) {
)) as any[]
if (lastReset.length > 0) {
const cooldownMs = 30 * 1000 // 30 seconds
const cooldownMs = 30 * 10 // 30 seconds
const lastResetTime = new Date(lastReset[0].timestamp).getTime()
const now = new Date().getTime()
const timeSinceReset = now - lastResetTime