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 bulk-update-links.ts

Tim Wilson9a294294dbf5
diff --git a/apps/web/lib/api/links/bulk-update-links.ts b/apps/web/lib/api/links/bulk-update-links.ts
index f6abd8c7db..6512070c78 100644
--- a/apps/web/lib/api/links/bulk-update-links.ts
+++ b/apps/web/lib/api/links/bulk-update-links.ts
@@ -25,6 +25,7 @@ export async function bulkUpdateLinks(
proxy,
expiresAt,
geo,
+ tests,
tagId,
tagIds,
tagNames,
@@ -54,6 +55,8 @@ export async function bulkUpdateLinks(
: image,
expiresAt: expiresAt ? new Date(expiresAt) : null,
geo: geo || Prisma.JsonNull,
+ tests: tests || Prisma.JsonNull,
+
...(url && getParamsFromURL(url)),
// Associate tags by tagNames
...(tagNames &&