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.

Update route.ts

Kiran Kd5d8f8daa6f2
diff --git a/apps/web/app/api/programs/[programId]/rewards/route.ts b/apps/web/app/api/programs/[programId]/rewards/route.ts
index 93662f268f..2df22287af 100644
--- a/apps/web/app/api/programs/[programId]/rewards/route.ts
+++ b/apps/web/app/api/programs/[programId]/rewards/route.ts
@@ -25,6 +25,9 @@ export const GET = withWorkspace(async ({ workspace, params }) => {
},
},
},
+ orderBy: {
+ createdAt: "desc",
+ },
});
const rewardsWithPartnersCount = rewards.map((reward) => ({