Skip to content

Commit

Permalink
feat: added default to get schedule function
Browse files Browse the repository at this point in the history
  • Loading branch information
schruptor committed Jun 1, 2022
1 parent 2bef892 commit 7a0a658
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public static function get(): Collection
{
if (config('schedule.caching.status') === true) {
return match (config('schedule.caching.destination')) {
'database' => (new self())->getSchedulesFromDatabase()
'database' => (new self())->getSchedulesFromDatabase(),
default => (new self())->getSchedulesFromRuntime(),
};
}

Expand Down

0 comments on commit 7a0a658

Please sign in to comment.