From 60d6f067b47c71348370a0c98de0d2f4c411b5f5 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Sat, 28 Mar 2026 17:24:55 +0100 Subject: [PATCH] rename content into message for notifications --- src/utils/echo/listeners/userNotificationsListener.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/echo/listeners/userNotificationsListener.js b/src/utils/echo/listeners/userNotificationsListener.js index c23876a..f721a7d 100644 --- a/src/utils/echo/listeners/userNotificationsListener.js +++ b/src/utils/echo/listeners/userNotificationsListener.js @@ -6,9 +6,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU .notification((notification) => { const newNotification = { id: notification.id, - content: notification.message, + data: { message: notification.message }, + read_at: null, created_at: new Date().toISOString(), - pivot: { unread: 1 } }; setNotifications(prev => [newNotification, ...prev]);