From b81b3b3d5a7e2eca1e987f174d0409837d853393 Mon Sep 17 00:00:00 2001 From: Kiran K Date: Mon, 16 Mar 2026 21:19:49 +0530 Subject: [PATCH 1/2] Display messages from all program enrollments, not only approved (#3586) --- apps/web/app/(ee)/api/messages/route.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/web/app/(ee)/api/messages/route.ts b/apps/web/app/(ee)/api/messages/route.ts index 6c9e62c087e..62ae82d1493 100644 --- a/apps/web/app/(ee)/api/messages/route.ts +++ b/apps/web/app/(ee)/api/messages/route.ts @@ -37,9 +37,6 @@ export const GET = withWorkspace( messages: { some: { programId, - programEnrollment: { - status: "approved", - }, }, }, }, From f686740306157e220301e9d2113b547568fd9361 Mon Sep 17 00:00:00 2001 From: Steven Tey Date: Mon, 16 Mar 2026 09:57:57 -0700 Subject: [PATCH 2/2] fix inAppApplication condition --- .../partners/create-program-application.ts | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/apps/web/lib/actions/partners/create-program-application.ts b/apps/web/lib/actions/partners/create-program-application.ts index 9711afdea51..5f301a4e729 100644 --- a/apps/web/lib/actions/partners/create-program-application.ts +++ b/apps/web/lib/actions/partners/create-program-application.ts @@ -179,26 +179,28 @@ export const createProgramApplicationAction = actionClient throw new Error("This program is no longer accepting applications."); } - // for in-app applications from existing partners, we need to check - // if the partner has an incomplete profile, if so we prompt them to complete it - if (inAppApplication && existingPartner) { - const { isComplete } = getPartnerProfileChecklistProgress({ - partner: { - ...existingPartner, - preferredEarningStructures: - existingPartner.preferredEarningStructures.map( - ({ preferredEarningStructure }) => preferredEarningStructure, + if (existingPartner) { + // for in-app applications from existing partners, we need to check + // if the partner has an incomplete profile, if so we prompt them to complete it + if (inAppApplication) { + const { isComplete } = getPartnerProfileChecklistProgress({ + partner: { + ...existingPartner, + preferredEarningStructures: + existingPartner.preferredEarningStructures.map( + ({ preferredEarningStructure }) => preferredEarningStructure, + ), + salesChannels: existingPartner.salesChannels.map( + ({ salesChannel }) => salesChannel, ), - salesChannels: existingPartner.salesChannels.map( - ({ salesChannel }) => salesChannel, - ), - }, - }); + }, + }); - if (!isComplete) { - throw new Error( - "Please complete your partner profile to submit your application: https://partners.dub.co/profile", - ); + if (!isComplete) { + throw new Error( + "Please complete your partner profile to submit your application: https://partners.dub.co/profile", + ); + } } return createApplicationAndEnrollment({