Skip to content

Commit

Permalink
Merge pull request #231 from kolaente/patch-1
Browse files Browse the repository at this point in the history
fix: do not try to send notifications when they are disabled
  • Loading branch information
freekmurze authored Jul 15, 2024
2 parents 3d07098 + e1dd279 commit 1359fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/RunHealthChecksCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function handle(): int

$results = $this->runChecks();

if (! $this->option('no-notification')) {
if (! $this->option('no-notification') && config('health.notifications.enabled', false)) {
$this->sendNotification($results);
}

Expand Down

0 comments on commit 1359fde

Please sign in to comment.