The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Fix `PATCH /links/bulk` bug
Steven Teyc0deffc68fb4
diff --git a/apps/web/lib/api/links/bulk-update-links.ts b/apps/web/lib/api/links/bulk-update-links.tsindex 3ff288d016..e6b7e6fbd2 100644--- a/apps/web/lib/api/links/bulk-update-links.ts+++ b/apps/web/lib/api/links/bulk-update-links.ts@@ -47,15 +47,15 @@ export async function bulkUpdateLinks(...rest,url,proxy,- title: truncate(title, 120),- description: truncate(description, 240),+ title: title ? truncate(title, 120) : title,+ description: description ? truncate(description, 240) : description,image:proxy && image && isNotHostedImage(image)? `${R2_URL}/images/${linkIds[0]}_${imageUrlNonce}`: image,- expiresAt: expiresAt ? new Date(expiresAt) : null,- geo: geo || Prisma.JsonNull,- testVariants: testVariants || Prisma.JsonNull,+ expiresAt: expiresAt ? new Date(expiresAt) : expiresAt,+ geo: geo === null ? Prisma.JsonNull : geo,+ testVariants: testVariants === null ? Prisma.JsonNull : testVariants,...(url && getParamsFromURL(url)),// Associate tags by tagNames