Skip to content

Commit

Permalink
Fixed NotificationManager.php removeNotification function to delete t…
Browse files Browse the repository at this point in the history
…he notification after it deletes the NotifiableNotification entities instead of have to call deleteNotification after removeNotification.
  • Loading branch information
IndyDevGuy committed Feb 25, 2020
1 parent c23801f commit 5f995c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Manager/NotificationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5f995c6

Please sign in to comment.