close #782 Enhancement: Schedule Time configuration change

This commit is contained in:
cuneytsenturk
2019-03-07 16:41:14 +03:00
parent 8b0a1a5034
commit 46decc1250
7 changed files with 56 additions and 10 deletions

View File

@ -37,9 +37,11 @@ class Kernel extends ConsoleKernel
return;
}
$schedule->command('reminder:invoice')->dailyAt(setting('general.schedule_time', '09:00'));
$schedule->command('reminder:bill')->dailyAt(setting('general.schedule_time', '09:00'));
$schedule->command('recurring:check')->dailyAt(setting('general.schedule_time', '09:00'));
$schedule_time = env('APP_SCHEDULE_TIME', '09:00');
$schedule->command('reminder:invoice')->dailyAt($schedule_time);
$schedule->command('reminder:bill')->dailyAt($schedule_time);
$schedule->command('recurring:check')->dailyAt($schedule_time);
}
/**