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 route.ts

Kiran K2534e0ec22d1
diff --git a/apps/web/app/(ee)/api/partner-profile/programs/[programId]/earnings/route.ts b/apps/web/app/(ee)/api/partner-profile/programs/[programId]/earnings/route.ts
index 0dc49d783c..9112d04495 100644
--- a/apps/web/app/(ee)/api/partner-profile/programs/[programId]/earnings/route.ts
+++ b/apps/web/app/(ee)/api/partner-profile/programs/[programId]/earnings/route.ts
@@ -42,9 +42,7 @@ export const GET = withPartnerProfile(
const earnings = await prisma.commission.findMany({
where: {
earnings: {
- not: {
- equals: 0,
- },
+ not: 0,
},
programId: program.id,
partnerId: partner.id,