Skip to content

Commit 892854f

Browse files
committed
Sort drafts in the /account page.
1 parent 640b059 commit 892854f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webserver/src/pages/account.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const [googleUsers, recipeCount, otherUsernames, drafts] = await Promise.all([
3232
prisma.draftRecipe.findMany({
3333
where: { User: { id: user.id } },
3434
select: { id: true, data: true },
35+
orderBy: { createdAt: 'desc'},
3536
}),
3637
]);
3738

0 commit comments

Comments
 (0)