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.

order sales by creation date

Steven Tey0359f330440c
diff --git a/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts b/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts
index f7a68f6419..6817a29698 100644
--- a/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts
+++ b/apps/web/app/api/programs/[programId]/payouts/[payoutId]/route.ts
@@ -24,6 +24,9 @@ export const GET = withWorkspace(async ({ workspace, params }) => {
include: {
customer: true,
},
+ orderBy: {
+ createdAt: "desc",
+ },
},
},
});