Skip to content

Commit

Permalink
fix: #112 run scheduled commands on server but not on other cli commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Aug 9, 2024
1 parent 1e6eaed commit f716062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
//
})
->withSchedule(function (Schedule $schedule) {
if (app()->runningInConsole()) {
if (! app()->runningConsoleCommand('schedule:run')) {
return;
}

Expand Down

0 comments on commit f716062

Please sign in to comment.