The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
confirm delete operation
Kiran K7dda601b4310
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.tsindex 8799b6574f..e3a3f6f8b1 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@@ -10,6 +10,7 @@ export async function getProgramEnrollmentOrThrow({includeLeadReward = false,includeSaleReward = false,includeDiscount = false,+ includeGroup = false,}: {partnerId: string;programId: string;@@ -18,6 +19,7 @@ export async function getProgramEnrollmentOrThrow({includeLeadReward?: boolean;includeSaleReward?: boolean;includeDiscount?: boolean;+ includeGroup?: boolean;}) {const include: Prisma.ProgramEnrollmentInclude = {program: true,@@ -41,6 +43,9 @@ export async function getProgramEnrollmentOrThrow({...(includeDiscount && {discount: true,}),+ ...(includeGroup && {+ partnerGroup: true,+ }),};const programEnrollment = programId.startsWith("prog_")