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 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.ts
index 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 tags
let selectedTags = successfulMappings
.map((result) => result.data.tags || [])
.flat()
@@ -356,7 +356,7 @@ const processMappedLinks = async ({
});
}
- //// Process the domains ////
+ // Process the domains
const 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 links
let linksToCreate = successfulMappings.map((result) => result.data);
const existingLinks = await prisma.link.findMany({