From 1cebde5792973b07ac085347c49b2ec6d056a22e Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 21 Jun 2024 16:03:46 +0200 Subject: [PATCH] fix: fixed oderBy in getNotifications --- apps/api/src/controller/user.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/controller/user.controller.ts b/apps/api/src/controller/user.controller.ts index 3bb1bc8..5332263 100644 --- a/apps/api/src/controller/user.controller.ts +++ b/apps/api/src/controller/user.controller.ts @@ -727,7 +727,7 @@ export const getNotifications = async ( notifications: { take: 30, orderBy: { - created_at: "asc" + created_at: "desc" } } }