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-program-enrollment-or-throw.ts

Kiran Ka16a10fc90d1
diff --git a/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts b/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts
index 31b6fd0eea..c449fd59f9 100644
--- a/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts
+++ b/apps/web/lib/api/programs/get-program-enrollment-or-throw.ts
@@ -62,6 +62,7 @@ export async function getProgramEnrollmentOrThrow({
...(includeDiscountCodes && {
discountCodes: {
where: {
+ // Omit soft deleted discount codes
discountId: {
not: null,
},