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.

Update route.ts

Tim Wilson349bc7f7d8ac
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 e7d92747ce..3ee55db328 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
@@ -46,7 +46,7 @@ export async function GET(req: Request) {
if (domains.length === 0) break;
for (const domain of domains) {
- if (domain.linkRetentionDays)
+ if (domain.linkRetentionDays && domain.linkRetentionDays > 0)
await deleteOldLinks(domain.slug, domain.linkRetentionDays);
}