The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix domain cron
Steven Teydf775a73f411
diff --git a/lib/cron/domains.tsx b/lib/cron/domains.tsxindex 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 ${