read read notification in front end working

This commit is contained in:
isUnknown 2024-11-17 12:23:28 +01:00
parent fe56312f20
commit 583daa1759
6 changed files with 35 additions and 57 deletions

View file

@ -15,7 +15,6 @@ return function($project, $notificationId) {
}
}
// Réindexation et ré-encodage en YAML avant la mise à jour
$user->update([
'notifications' => Yaml::encode(array_values($notifications))
]);

View file

@ -14,6 +14,7 @@
*/
return function ($projectUri, $notificationData) {
$notificationData['isRead'] = false;
$recipients = page($projectUri)->managers()->toUsers()->not($this);
if (!$recipients) return;