diff --git a/src/NotificationRunner.php b/src/NotificationRunner.php index 40b4634..af69bd2 100644 --- a/src/NotificationRunner.php +++ b/src/NotificationRunner.php @@ -68,13 +68,13 @@ public function run(): void { $data = $notification['data'] ?? []; $data['type'] = $notifier->getName(); - // Create and send the notification - $this->echoEventCreator->create( $data ); - if ( $notificationId !== null ) { // Make sure we don't push the notification twice by storing that we have sent it $this->pushedNotificationBucket->setPushed( $notificationId ); } + + // Create and send the notification + $this->echoEventCreator->create( $data ); } }