Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

increase to 1 hour

Steven Tey9dddd59a97bb
diff --git a/apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.ts b/apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.ts
index 3f64ee8953..cf5710af62 100644
--- a/apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.ts
+++ b/apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.ts
@@ -6,8 +6,8 @@ import { NextResponse } from "next/server";
export const dynamic = "force-dynamic";
-// tokens expired 10+ mins ago
-const cutoff = new Date(Date.now() - 1000 * 60 * 10);
+// tokens expired 1 hour ago
+const cutoff = new Date(Date.now() - 1000 * 60 * 60);
// This route is used to remove expired tokens from the database
// 1. VerificationToken