The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rename route
Steven Tey1232987d3d50
diff --git a/apps/web/app/(ee)/api/cron/clean-expired-tokens/route.ts b/apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.tssimilarity index 91%rename from apps/web/app/(ee)/api/cron/clean-expired-tokens/route.tsrename to apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.tsindex 8b0dd41656..3f64ee8953 100644--- a/apps/web/app/(ee)/api/cron/clean-expired-tokens/route.ts+++ b/apps/web/app/(ee)/api/cron/cleanup/expired-tokens/route.ts@@ -13,7 +13,8 @@ const cutoff = new Date(Date.now() - 1000 * 60 * 10);// 1. VerificationToken// 2. EmailVerificationToken// 3. PasswordResetToken-// GET /api/cron/clean-expired-tokens+// Runs once every hour (0 * * * *)+// GET /api/cron/cleanup/expired-tokensexport async function GET(req: Request) {try {await verifyVercelSignature(req);@@ -54,7 +55,7 @@ export async function GET(req: Request) {return NextResponse.json({ status: "OK" });} catch (error) {await log({- message: `/api/cron/clean-expired-tokens failed - ${error.message}`,+ message: `/api/cron/cleanup/expired-tokens failed - ${error.message}`,type: "errors",});