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 utils.ts

Steven Teya5aaf0041ec1
diff --git a/apps/web/app/api/cron/domains/verify/utils.ts b/apps/web/app/api/cron/domains/verify/utils.ts
index 6e23cbae0c..eaf1dea65a 100644
--- a/apps/web/app/api/cron/domains/verify/utils.ts
+++ b/apps/web/app/api/cron/domains/verify/utils.ts
@@ -85,7 +85,7 @@ export const handleDomainUpdates = async ({
domain,
},
});
- if (linksClicks._sum?.clicks) {
+ if (linksClicks._sum.clicks && linksClicks._sum.clicks > 0) {
return await log({
message: `Domain *${domain}* has been invalid for > 30 days but has links with clicks, skipping.`,
type: "cron",