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.

fix the filter sales by date

Kiran K831f04043f7f
diff --git a/apps/web/app/api/programs/[programId]/sales/route.ts b/apps/web/app/api/programs/[programId]/sales/route.ts
index adc8c03297..8110d01619 100644
--- a/apps/web/app/api/programs/[programId]/sales/route.ts
+++ b/apps/web/app/api/programs/[programId]/sales/route.ts
@@ -72,10 +72,10 @@ export const GET = withWorkspace(
...(customerId && { customerId }),
...(payoutId && { payoutId }),
...(partnerId && { partnerId }),
- // createdAt: {
- // gte: new Date(start).toISOString(),
- // lte: new Date(end).toISOString(),
- // },
+ createdAt: {
+ gte: new Date(start).toISOString(),
+ lte: new Date(end).toISOString(),
+ },
},
select: {
id: true,