issue solve din production report send mail
This commit is contained in:
@@ -147,22 +147,22 @@ app()->booted(function () {
|
|||||||
->get();
|
->get();
|
||||||
|
|
||||||
foreach ($productionRules as $rule) {
|
foreach ($productionRules as $rule) {
|
||||||
$command = $schedule->command("send:production-report --email={$rule->email}");
|
$command = $schedule->command("send:production-report");
|
||||||
|
|
||||||
switch ($rule->schedule_type) {
|
switch ($rule->schedule_type) {
|
||||||
case 'Live':
|
case 'Live':
|
||||||
$command->everyMinute();
|
$command->everyMinute();
|
||||||
Log::info("Scheduled Live production report for {$rule->email}");
|
// Log::info("Scheduled Live production report for");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Hourly':
|
case 'Hourly':
|
||||||
$command->hourly();
|
$command->hourly();
|
||||||
Log::info("Scheduled Hourly production report for {$rule->email}");
|
//Log::info("Scheduled Hourly production report for {$rule->email}");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Daily':
|
case 'Daily':
|
||||||
$command->dailyAt('07:59');
|
$command->dailyAt('07:59');
|
||||||
Log::info("Scheduled Daily production report for {$rule->email}");
|
// Log::info("Scheduled Daily production report for {$rule->email}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user