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]);