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 Tey20d317c123a6
diff --git a/apps/web/app/api/links/[linkId]/route.ts b/apps/web/app/api/links/[linkId]/route.ts
index 550363db14..86df069e31 100644
--- a/apps/web/app/api/links/[linkId]/route.ts
+++ b/apps/web/app/api/links/[linkId]/route.ts
@@ -172,13 +172,6 @@ export const DELETE = withWorkspace(
linkId: params.linkId,
});
- if (link.programId) {
- throw new DubApiError({
- code: "forbidden",
- message: "You can't delete a link that's part of a program.",
- });
- }
-
const response = await deleteLink(link.id);
waitUntil(