The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Kiran K33a825d83ca2
diff --git a/apps/web/app/api/cron/import/csv/route.ts b/apps/web/app/api/cron/import/csv/route.tsindex 1dfafb64dd..c713fae30c 100644--- a/apps/web/app/api/cron/import/csv/route.ts+++ b/apps/web/app/api/cron/import/csv/route.ts@@ -320,7 +320,7 @@ const processMappedLinks = async ({console.log(successfulMappings);- //// Process the tags ////+ // Process the tagslet selectedTags = successfulMappings.map((result) => result.data.tags || []).flat()@@ -356,7 +356,7 @@ const processMappedLinks = async ({});}- //// Process the domains ////+ // Process the domainsconst selectedDomains = successfulMappings.map((result) => result.data.domain).filter((domain): domain is string => Boolean(domain));@@ -407,7 +407,7 @@ const processMappedLinks = async ({await redis.sadd(`${redisKey}:domains`, ...selectedDomains);}- //// Process the links ////+ // Process the linkslet linksToCreate = successfulMappings.map((result) => result.data);const existingLinks = await prisma.link.findMany({