rename content into message for notifications

This commit is contained in:
Giovanni committed 2026-03-28 17:25:45 +01:00
1 parent 60d6f067b4
commit df591c2ca1
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
export default interface Notification {
id: string;s
id: string;
data: {
message: string;
};
@@ -5,9 +5,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
echo.private(channelName)
.notification((notification) => {
const newNotification = {
id: notification.id,
data: { message: notification.message },
read_at: null,
id: notification.id,
data: { message: notification.message },
read_at: null,
created_at: new Date().toISOString(),
};