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.

fix domain cron

Steven Teydf775a73f411
diff --git a/lib/cron/domains.tsx b/lib/cron/domains.tsx
index 811e5c5e12..2c9aaf8a39 100644
--- a/lib/cron/domains.tsx
+++ b/lib/cron/domains.tsx
@@ -105,12 +105,13 @@ export const handleDomainUpdates = async ({
return await Promise.allSettled([
deleteDomainAndLinks(domain).then(() => {
- deleteProjectAsWell &&
- prisma.project.delete({
+ if (deleteProjectAsWell) {
+ return prisma.project.delete({
where: {
slug: projectSlug,
},
});
+ }
}),
log({
message: `Domain *${domain}* has been invalid for > 30 days and ${