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