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.

Rename route

Tim Wilson387ea655b324
diff --git a/apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts b/apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts
similarity index 98%
rename from apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts
rename to apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts
index 46eb4edb9b..e7d92747ce 100644
--- a/apps/web/app/(ee)/api/cron/links/delete-old-links/route.ts
+++ b/apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts
@@ -11,7 +11,7 @@ const DOMAINS_PER_BATCH = 10;
const MAX_DOMAIN_BATCHES = 1_000;
// This route is used to delete old links for domains with linkRetentionDays set
-// GET /api/cron/links/delete-old-links
+// GET /api/cron/link-retention-cleanup
export async function GET(req: Request) {
try {
await verifyVercelSignature(req);
diff --git a/apps/web/vercel.json b/apps/web/vercel.json
index 7fad4bc2f2..b15a7b1a2a 100644
--- a/apps/web/vercel.json
+++ b/apps/web/vercel.json
@@ -49,7 +49,7 @@
"schedule": "0 0 * * *"
},
{
- "path": "/api/cron/links/delete-old-links",
+ "path": "/api/cron/link-retention-cleanup",
"schedule": "0 0 * * *"
}
],