fix(notifications): Throw AlreadyProcessedException also from the manager when it's done

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/44770/head
Joas Schilling 2 months ago
parent 0d0c2cdaa0
commit 6545fed34a
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205

@ -355,7 +355,7 @@ class Manager implements IManager {
$notification = $notifier->prepare($notification, $languageCode);
} catch (AlreadyProcessedException $e) {
$this->markProcessed($notification);
throw new \InvalidArgumentException('The given notification has been processed');
throw $e;
} catch (UnknownNotificationException) {
continue;
} catch (\InvalidArgumentException $e) {

Loading…
Cancel
Save