rename content into message for notifications

This commit is contained in:
2026-03-28 17:25:45 +01:00
parent 60d6f067b4
commit df591c2ca1
2 changed files with 4 additions and 4 deletions
+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(),
};