From af7b3a2376bdc9b8799a4ce753fdd2345ad3800e Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 3 Dec 2018 13:12:39 -0600 Subject: [PATCH] modified scheduled task --- app/Console/Commands/dumpFleets.php | 2 +- app/Console/Kernel.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/dumpFleets.php b/app/Console/Commands/dumpFleets.php index 70ebd52d0..c44653788 100644 --- a/app/Console/Commands/dumpFleets.php +++ b/app/Console/Commands/dumpFleets.php @@ -9,7 +9,7 @@ use Carbon\Carbon; use App\Models\ScheduleJob; -class dumpFleets extends Command +class DumpFleets extends Command { /** * The name and signature of the console command. diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 1c4ff0101..29a8811af 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -17,6 +17,7 @@ class Kernel extends ConsoleKernel Commands\getCorps::class, Commands\sendMail::class, Commands\UpdateMoonPricing::class, + Commands\DumpFleets::class, ]; /** @@ -36,6 +37,9 @@ class Kernel extends ConsoleKernel $schedule->command('services:updatemoonprice') ->hourly() ->withoutOverlapping(); + $schedule->command('services:dumpfleets') + ->dailyAt('05:00') + ->withoutOverlapping(); //$schedule->command('services:sendmail') // ->monthlyOn(1, '09:00') // ->withoutOverlapping();