Skip to content

Commit

Permalink
fix: do not process disabled notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartui committed Aug 27, 2024
1 parent aca3bae commit b3a71f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public function run(...$context)
public function setNotifications()
{
foreach (NotificationStore::withTrigger($this->trigger->getSlug()) as $notification) {
if (!$notification->isEnabled()) {
continue;
}

$this->attachNotification($notification);
}
}
Expand Down

0 comments on commit b3a71f5

Please sign in to comment.