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 remaining linksNew reference

Tim Wilsonbaf9ae711875
diff --git a/apps/web/app/api/tags/[id]/route.ts b/apps/web/app/api/tags/[id]/route.ts
index ee8f895522..9f302325ba 100644
--- a/apps/web/app/api/tags/[id]/route.ts
+++ b/apps/web/app/api/tags/[id]/route.ts
@@ -55,13 +55,13 @@ export const DELETE = withAuth(async ({ params }) => {
id,
},
include: {
- linksNew: true,
+ links: true,
},
});
// update links metadata in tinybird after deleting a tag
await Promise.all(
- response.linksNew.map(async ({ linkId }) => {
+ response.links.map(async ({ linkId }) => {
const link = await prisma.link.findUnique({
where: {
id: linkId,