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 K5ac44d02032b
diff --git a/apps/web/app/api/programs/[programId]/sales/route.ts b/apps/web/app/api/programs/[programId]/sales/route.ts
index 3bb6e6aab6..bdbc47ecaf 100644
--- a/apps/web/app/api/programs/[programId]/sales/route.ts
+++ b/apps/web/app/api/programs/[programId]/sales/route.ts
@@ -35,11 +35,11 @@ export const GET = withWorkspace(
const sales = await prisma.commission.findMany({
where: {
programId,
- type: "sale",
+ partnerId,
status,
+ type: "sale",
customerId,
payoutId,
- partnerId,
createdAt: {
gte: startDate.toISOString(),
lte: endDate.toISOString(),