rename content into message for notifications
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user