Skip to content

Commit

Permalink
Handle missing scheduler setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimot24 committed Dec 27, 2024
1 parent 662b014 commit 4692fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controllers/ScheduleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function index()
return view('settings.schedules', [
'commands' => rescue(fn() => \Artisan::all(), fn() => []),
'scheduled_tasks' => \App\Model\ScheduledTask::all(),
'scheduler' => \Settings::where('setting','scheduler')->first()
'scheduler' => \Settings::where('setting','scheduler')->firstOrNew(['key' => 'scheduler', 'value' => 'not configured'])
]);
}

Expand Down

0 comments on commit 4692fa4

Please sign in to comment.