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 get-links-for-workspace.ts

Kiran K7876a4652e8e
diff --git a/apps/web/lib/api/links/get-links-for-workspace.ts b/apps/web/lib/api/links/get-links-for-workspace.ts
index 037c2753f8..b22eafc6b4 100644
--- a/apps/web/lib/api/links/get-links-for-workspace.ts
+++ b/apps/web/lib/api/links/get-links-for-workspace.ts
@@ -73,11 +73,7 @@ export async function getLinksForWorkspace({
}
: {}),
...(tenantId && { tenantId }),
- ...(partnerId && {
- programEnrollment: {
- partnerId,
- },
- }), // TODO: Should we add a programId filter along with partnerId?
+ ...(partnerId && { partnerId }),
...(userId && { userId }),
...(linkIds && { id: { in: linkIds } }),
},