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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-04-10 17:26:52 +02:00
parent 0d0c2cdaa0
commit 6545fed34a
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 1 additions and 1 deletions

View File

@ -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) {