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.

Drop the page query comment

Rafi4f0b33a08a81
diff --git a/apps/web/lib/api/partners/get-partners.ts b/apps/web/lib/api/partners/get-partners.ts
index 4eb835005b..2af57657d6 100644
--- a/apps/web/lib/api/partners/get-partners.ts
+++ b/apps/web/lib/api/partners/get-partners.ts
@@ -107,8 +107,6 @@ export async function getPartners(
.slice((page - 1) * pageSize, page * pageSize)
.map(({ id }) => id);
- // The IDs already passed every filter above. The program scope stays as a
- // guard, the partner joins do not need to run again.
const pageEnrollments =
pageIds.length > 0
? await prisma.programEnrollment.findMany({