removed run in background for mail report
This commit is contained in:
@@ -36,16 +36,16 @@ foreach ($rules as $rule) {
|
|||||||
|
|
||||||
switch ($scheduleType) {
|
switch ($scheduleType) {
|
||||||
case 'Live':
|
case 'Live':
|
||||||
Schedule::command("send:invoice-report {$rule['argument']}")->everyMinute()->runInBackground();
|
Schedule::command("send:invoice-report {$rule['argument']}")->everyMinute();
|
||||||
break;
|
break;
|
||||||
case 'Hourly':
|
case 'Hourly':
|
||||||
Schedule::command("send:invoice-report {$rule['argument']}")->hourly()->runInBackground();
|
Schedule::command("send:invoice-report {$rule['argument']}")->hourly();
|
||||||
break;
|
break;
|
||||||
case 'Daily':
|
case 'Daily':
|
||||||
Schedule::command("send:invoice-report {$rule['argument']}")->dailyAt('07:59')->runInBackground();
|
Schedule::command("send:invoice-report {$rule['argument']}")->dailyAt('07:59');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Schedule::command("send:invoice-report {$rule['argument']}")->hourly()->runInBackground();
|
Schedule::command("send:invoice-report {$rule['argument']}")->hourly();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -57,16 +57,16 @@ $productionScheduleType = AlertMailRule::where('module', 'ProductionQuantities')
|
|||||||
|
|
||||||
switch ($productionScheduleType) {
|
switch ($productionScheduleType) {
|
||||||
case 'Live':
|
case 'Live':
|
||||||
Schedule::command('send:production-report')->everyMinute()->runInBackground();
|
Schedule::command('send:production-report')->everyMinute();
|
||||||
break;
|
break;
|
||||||
case 'Hourly':
|
case 'Hourly':
|
||||||
Schedule::command('send:production-report')->hourly()->runInBackground();
|
Schedule::command('send:production-report')->hourly();
|
||||||
break;
|
break;
|
||||||
case 'Daily':
|
case 'Daily':
|
||||||
Schedule::command('send:production-report')->dailyAt('07:59')->runInBackground();
|
Schedule::command('send:production-report')->dailyAt('07:59');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Schedule::command('send:production-report')->hourly()->runInBackground();
|
Schedule::command('send:production-report')->hourly();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user