Ficed the leads per month in dev account

This commit is contained in:
2026-06-26 19:52:02 +02:00
parent 46a3216386
commit 886a7efe91
2 changed files with 3 additions and 6 deletions
-3
View File
@@ -8,9 +8,6 @@ let prevTime = Date.now()
export async function GET() {
const sessionUser = await getSessionUser()
if (!sessionUser) return NextResponse.json({ error: "Unauthorized" }, { status: 401 })
if (sessionUser.role !== "admin" && sessionUser.role !== "super_admin") {
return NextResponse.json({ error: "Forbidden" }, { status: 403 })
}
const now = Date.now()
const elapsed = now - prevTime