diff --git a/app/Console/Commands/AutoGenerateInvoice.php b/app/Console/Commands/AutoGenerateInvoice.php index df0ff65b..203ad97b 100644 --- a/app/Console/Commands/AutoGenerateInvoice.php +++ b/app/Console/Commands/AutoGenerateInvoice.php @@ -43,10 +43,11 @@ class AutoGenerateInvoice extends Command */ public function handle() { + $this->info(Carbon::now() . ' : Auto generate invoice cron started.'); $packingLists = (App()->make(ListsPackingLists::class))->execute(['does_not_have_transaction_type' => 1, 'type' => 2]); if (count($packingLists)) { - $this->info(Carbon::now() . ' : Auto generate invoice cron starrted.'); + // $this->info(Carbon::now() . ' : Auto generate invoice cron started.'); $start = new Carbon(); foreach ($packingLists as $packingList) { diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 2986eb25..fdd7a2a9 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -44,7 +44,7 @@ class Kernel extends ConsoleKernel ->appendOutputTo (storage_path().'/logs/departure_email.log'); $schedule->command('invoice:generate') - ->hourly() + ->everyTenMinutes() ->withoutOverlapping() ->appendOutputTo (storage_path().'/logs/auto_generate_invoice.log'); }