The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
remove updateMany since it'll be taken care of by cron
Steven Teyb0e50b49be73
diff --git a/apps/web/app/api/cron/domains/delete/route.ts b/apps/web/app/api/cron/domains/delete/route.tsindex 702f62e86f..bbee864ca9 100644--- a/apps/web/app/api/cron/domains/delete/route.ts+++ b/apps/web/app/api/cron/domains/delete/route.ts@@ -54,7 +54,8 @@ export async function POST(req: Request) {// Remove the link from RedislinkCache.deleteMany(links),- // Record link in the Tinybird+ // Record link in Tinybird+ // TODO: Maybe we can just delete these links instead?recordLink(links),// Remove image from R2 storage if it existsdiff --git a/apps/web/lib/api/domains/mark-domain-deleted.ts b/apps/web/lib/api/domains/mark-domain-deleted.tsindex 4eadec2572..cca92d346d 100644--- a/apps/web/lib/api/domains/mark-domain-deleted.ts+++ b/apps/web/lib/api/domains/mark-domain-deleted.ts@@ -11,15 +11,6 @@ export async function markDomainAsDeleted({domain: string;workspaceId: string;}) {- await prisma.link.updateMany({- where: {- domain,- },- data: {- projectId: null,- },- });-const response = await Promise.allSettled([removeDomainFromVercel(domain),