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 bulkCreateLinks without tags

Steven Teyd1bcbd910aef
diff --git a/apps/web/lib/api/links/bulk-create-links.ts b/apps/web/lib/api/links/bulk-create-links.ts
index 0b121efd88..a5c3c0881e 100644
--- a/apps/web/lib/api/links/bulk-create-links.ts
+++ b/apps/web/lib/api/links/bulk-create-links.ts
@@ -102,7 +102,7 @@ export async function bulkCreateLinks({
} else {
// if there are no tags, we can use createMany to create the links
await prisma.link.createMany({
- data: links.map((link) => {
+ data: links.map(({ tagId, tagIds, tagNames, ...link }) => {
const { utm_source, utm_medium, utm_campaign, utm_term, utm_content } =
getParamsFromURL(link.url);