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 K4ca13a261229
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 f68b0f4594..077e47518f 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
@@ -66,7 +66,7 @@ export async function getProgramEnrollmentOrThrow({
programEnrollment.clickRewardId,
programEnrollment.leadRewardId,
programEnrollment.saleRewardId,
- ].filter((id) => id !== null);
+ ].filter((id): id is string => id !== null);
rewards = await prisma.reward.findMany({
where: {