Skip to content

Commit

Permalink
fix: order diary by watchedAt date not id
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkelspiel committed May 13, 2024
1 parent c5f0fe1 commit 4cbf6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/(app)/users/[username]/diary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const getUserDiary = async (userId: number): Promise<Diary> => {
status: 'completed',
},
orderBy: {
id: 'desc',
watchedAt: 'desc',
},
take: 10,
include: {
Expand Down

0 comments on commit 4cbf6e4

Please sign in to comment.