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.

missed a spot

Steven Teye27ef8fe64b7
diff --git a/apps/web/app/api/programs/[programId]/sales/count/route.ts b/apps/web/app/api/programs/[programId]/sales/count/route.ts
index b462ec042a..f9116b3eb5 100644
--- a/apps/web/app/api/programs/[programId]/sales/count/route.ts
+++ b/apps/web/app/api/programs/[programId]/sales/count/route.ts
@@ -24,9 +24,12 @@ export const GET = withWorkspace(
const salesCount = await prisma.commission.groupBy({
by: ["status"],
where: {
- type: "sale",
+ amount: {
+ gt: 0,
+ },
programId,
status,
+ type: "sale",
partnerId,
payoutId,
customerId,