Added logs method in production report
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user