Skip to content

Commit

Permalink
Update route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
devkiran committed Dec 23, 2024
1 parent 290b397 commit 06fc275
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/web/app/api/programs/[programId]/metrics/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ export const GET = withWorkspace(
}),

prisma.sale.aggregate({
where,
where: {
...where,
status: {
notIn: ["duplicate", "fraud", "refunded"],
},
},
_sum: {
amount: true,
},
Expand Down

0 comments on commit 06fc275

Please sign in to comment.