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

Steven Teyaba730694ea9
diff --git a/apps/web/app/api/links/[linkId]/route.ts b/apps/web/app/api/links/[linkId]/route.ts
index b52b09ed0c..17d20e953b 100644
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@ -35,6 +35,7 @@ export const GET = withAuth(async ({ headers, link }) => {
return NextResponse.json(
{
...link,
+ tagId: tags?.[0]?.id ?? null, // backwards compatibility
tags,
},
{