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();