Skip to content

Commit

Permalink
Use heartbeat driver correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig committed Jul 31, 2024
1 parent d493288 commit 74017fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Heartbeat.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function send(string $slug, int $minutes = 1): void

$config = config('butler.health.heartbeat');

if ($config['driver'] ?? null === 'log') {
if (data_get($config, 'driver') === 'log') {
Log::info('heartbeat', ['url' => $url]);

return;
Expand Down

0 comments on commit 74017fb

Please sign in to comment.