rename content into message for notifications
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
export default interface Notification {
|
export default interface Notification {
|
||||||
id: string;s
|
id: string;
|
||||||
data: {
|
data: {
|
||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
|
|||||||
echo.private(channelName)
|
echo.private(channelName)
|
||||||
.notification((notification) => {
|
.notification((notification) => {
|
||||||
const newNotification = {
|
const newNotification = {
|
||||||
id: notification.id,
|
id: notification.id,
|
||||||
data: { message: notification.message },
|
data: { message: notification.message },
|
||||||
read_at: null,
|
read_at: null,
|
||||||
created_at: new Date().toISOString(),
|
created_at: new Date().toISOString(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user