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.

Merge branch 'optimize-partners' of https://github.com/dubinc/dub into optimize-partners

Steven Tey522e4d69becc
diff --cc apps/web/app/api/programs/[programId]/sales/route.ts
index a99a96c2a0,bdbc47ecaf..6e5500f683
--- a/apps/web/app/api/programs/[programId]/sales/route.ts
+++ b/apps/web/app/api/programs/[programId]/sales/route.ts
@@@ -34,15 -34,12 +34,15 @@@ export const GET = withWorkspace
const sales = await prisma.commission.findMany({
where: {
+ amount: {
+ gt: 0,
+ },
programId,
- type: "sale",
+ partnerId,
status,
+ type: "sale",
customerId,
payoutId,
- partnerId,
createdAt: {
gte: startDate.toISOString(),
lte: endDate.toISOString(),