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 DELETE /api/links/bulk

Kiran K3d7ca393155a
diff --git a/apps/web/app/api/links/bulk/route.ts b/apps/web/app/api/links/bulk/route.ts
index b493e01cdf..00a6fa99e1 100644
--- a/apps/web/app/api/links/bulk/route.ts
+++ b/apps/web/app/api/links/bulk/route.ts
@@ -388,6 +388,7 @@ export const DELETE = withWorkspace(
const links = await prisma.link.findMany({
where: {
projectId: workspace.id,
+ programId: null,
OR: [
...(linkIds.size > 0 ? [{ id: { in: Array.from(linkIds) } }] : []),
...(externalIds.size > 0