rename content into message for notifications

This commit is contained in:
2026-03-28 17:24:55 +01:00
parent d23fd55134
commit 60d6f067b4
@@ -6,9 +6,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
.notification((notification) => { .notification((notification) => {
const newNotification = { const newNotification = {
id: notification.id, id: notification.id,
content: notification.message, data: { message: notification.message },
read_at: null,
created_at: new Date().toISOString(), created_at: new Date().toISOString(),
pivot: { unread: 1 }
}; };
setNotifications(prev => [newNotification, ...prev]); setNotifications(prev => [newNotification, ...prev]);