Skip to content

Commit 0359f33

Browse files
committed
order sales by creation date
1 parent 6ea44d8 commit 0359f33

File tree

1 file changed

+3
-0
lines changed
  • apps/web/app/api/programs/[programId]/payouts/[payoutId]

1 file changed

+3
-0
lines changed

Diff for: apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export const GET = withWorkspace(async ({ workspace, params }) => {
2424
include: {
2525
customer: true,
2626
},
27+
orderBy: {
28+
createdAt: "desc",
29+
},
2730
},
2831
},
2932
});

0 commit comments

Comments
 (0)