Skip to content

Commit

Permalink
sort participants table by most recently added
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Sep 20, 2024
1 parent 31bc3a1 commit 2524aef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions queries/participants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const getParticipants = createCachedFunction(async () => {
interviews: true,
_count: { select: { interviews: true } },
},
// Sort to show the most recently created first
orderBy: { id: 'desc' },
});

return participants;
Expand Down

0 comments on commit 2524aef

Please sign in to comment.