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.

Link only pending applications on sign-in

Rafiefe6d3ed6b5c
diff --git a/apps/web/lib/partners/complete-program-applications.ts b/apps/web/lib/partners/complete-program-applications.ts
index 4e1a4699a3..5a028c89b7 100644
--- a/apps/web/lib/partners/complete-program-applications.ts
+++ b/apps/web/lib/partners/complete-program-applications.ts
@@ -62,6 +62,9 @@ export async function completeProgramApplications(userEmail: string) {
const programApplications = await prisma.programApplication.findMany({
where: {
email: userEmail,
+ // Reviewed applications are skipped. An instant rejection deletes the
+ // enrollment, and relinking would block the partner from reapplying.
+ status: "pending",
enrollment: null,
// Exclude any applications for programs the user is already enrolled in
programId: {