diff --git a/src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts b/src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts index bdecfcce..79b658f9 100644 --- a/src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts +++ b/src/front/Api/LeCoffreApi/Notary/Notifications/Notifications.ts @@ -6,6 +6,7 @@ export interface IGetNotificationsParams { where?: {}; include?: {}; select?: {}; + orderBy?: {}; } export type IPutNotificationsParams = { diff --git a/src/front/Components/DesignSystem/Header/Navigation/index.tsx b/src/front/Components/DesignSystem/Header/Navigation/index.tsx index 6134b4a8..fc98f632 100644 --- a/src/front/Components/DesignSystem/Header/Navigation/index.tsx +++ b/src/front/Components/DesignSystem/Header/Navigation/index.tsx @@ -39,6 +39,12 @@ export default function Navigation() { where: { read: false, }, + include: { + notification: true + }, + orderBy: { + notification: {created_at: "desc"}, + } }); notifications.forEach((notification) => { Toasts.getInstance().open({