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 complete-program-applications.ts

Tim Wilson53d6c3bdb02f
diff --git a/apps/web/lib/partners/complete-program-applications.ts b/apps/web/lib/partners/complete-program-applications.ts
index ca704cf1da..a27f3a2d6b 100644
--- a/apps/web/lib/partners/complete-program-applications.ts
+++ b/apps/web/lib/partners/complete-program-applications.ts
@@ -54,6 +54,8 @@ export async function completeProgramApplications(userId: string) {
where: {
id: { in: programApplicationIds.filter(Boolean) },
+ enrollment: null,
+
// Exclude any applications for programs the user is already enrolled in
programId: {
notIn: user.partners