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.

add final log

Steven Tey2451f2b90f7f
diff --git a/apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts b/apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts
index cfc0926495..d4f7c3a38d 100644
--- a/apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts
+++ b/apps/web/app/(ee)/api/cron/link-retention-cleanup/route.ts
@@ -68,6 +68,10 @@ async function deleteOldLinks(
take: LINKS_PER_BATCH,
});
+ console.log(
+ `[Link retention cleanup] Found ${links.length} links to delete for ${domain.slug} that are older than ${domain.linkRetentionDays} days`,
+ );
+
if (links.length === 0) break;
console.log(