diff --git a/routes/console.php b/routes/console.php index 223c6f0..888d87c 100644 --- a/routes/console.php +++ b/routes/console.php @@ -24,7 +24,6 @@ Artisan::command('inspire', function () { $productionRules = AlertMailRule::where('module', 'ProductionQuantities') ->where('rule_name', 'ProductionMail') ->select('plant', 'schedule_type') - ->select('plant', 'schedule_type') ->distinct() ->get(); @@ -32,7 +31,8 @@ Artisan::command('inspire', function () { $type = $rule->schedule_type; $plantId = $rule->plant; - $command = $schedule->command('send:production-report', [$type, $plantId]); + $command = $schedule->command('send:production-report', [$type, $plantId]) + ->appendOutputTo(storage_path('logs/scheduler.log')); switch ($type) { case 'Live':