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 the Invalid value provided with /links/upsert

Kiran Kfa27cb4013cf
diff --git a/apps/web/app/api/links/upsert/route.ts b/apps/web/app/api/links/upsert/route.ts
index bd863701c5..a0e0035f35 100644
--- a/apps/web/app/api/links/upsert/route.ts
+++ b/apps/web/app/api/links/upsert/route.ts
@@ -48,6 +48,7 @@ export const PUT = withWorkspace(
? link.expiresAt.toISOString()
: link.expiresAt,
geo: link.geo as NewLinkProps["geo"],
+ tagIds: (link.tags || []).map(({ tag }) => tag.id),
...body,
};