add notificationId to every broadcast notification
This commit is contained in:
1 parent
8494162919
commit
2222217045
1 file changed
+1
-1
@@ -29,7 +29,7 @@ export const userNotificationsListener = (echo, userData, setNotifications, setU
|
|||||||
handleNotification(event.notificationId,`Vous avez été désassigné de la tâche ${event.task.name} de l'événement ${event.event.name}.`);
|
handleNotification(event.notificationId,`Vous avez été désassigné de la tâche ${event.task.name} de l'événement ${event.event.name}.`);
|
||||||
})
|
})
|
||||||
.listen('.volunteer.role.updated', (event) => {
|
.listen('.volunteer.role.updated', (event) => {
|
||||||
handleNotification(`Votre rôle a changé pour : ${event.role} `);
|
handleNotification(event.notificationId, `Votre rôle a changé pour : ${event.role} `);
|
||||||
})
|
})
|
||||||
.listen('.task.date.updated', (event) => {
|
.listen('.task.date.updated', (event) => {
|
||||||
handleNotification(event.notificationId,`La date de la tâche ${event.task.name} de l'événement ${event.event.name} à été mis à jour. Cette tâche aura maintenant lieu du ${event.start} au ${event.end}.`);
|
handleNotification(event.notificationId,`La date de la tâche ${event.task.name} de l'événement ${event.event.name} à été mis à jour. Cette tâche aura maintenant lieu du ${event.start} au ${event.end}.`);
|
||||||
|
|||||||
Reference in new issue
Block a user