From 5f995c658740a64c2d74c6c5fa087924234fddaf Mon Sep 17 00:00:00 2001 From: "M@St3r_iLLuSioN" Date: Tue, 25 Feb 2020 01:56:27 -0500 Subject: [PATCH] Fixed NotificationManager.php removeNotification function to delete the notification after it deletes the NotifiableNotification entities instead of have to call deleteNotification after removeNotification. --- Manager/NotificationManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Manager/NotificationManager.php b/Manager/NotificationManager.php index 572e167..b6196f7 100755 --- a/Manager/NotificationManager.php +++ b/Manager/NotificationManager.php @@ -397,8 +397,10 @@ public function removeNotification(array $notifiables, NotificationInterface $no $event = new NotificationEvent($notification, $notifiable); $this->dispatcher->dispatch(MgiletNotificationEvents::REMOVED, $event); + $this->flush($flush); } + $this->deleteNotification($notification); $this->flush($flush); }