issue solve din production report send mail

This commit is contained in:
dhanabalan
2025-07-09 10:32:45 +05:30
parent fec85824c2
commit 15849fc543

View File

@@ -147,22 +147,22 @@ app()->booted(function () {
->get();
foreach ($productionRules as $rule) {
$command = $schedule->command("send:production-report --email={$rule->email}");
$command = $schedule->command("send:production-report");
switch ($rule->schedule_type) {
case 'Live':
$command->everyMinute();
Log::info("Scheduled Live production report for {$rule->email}");
// Log::info("Scheduled Live production report for");
break;
case 'Hourly':
$command->hourly();
Log::info("Scheduled Hourly production report for {$rule->email}");
//Log::info("Scheduled Hourly production report for {$rule->email}");
break;
case 'Daily':
$command->dailyAt('07:59');
Log::info("Scheduled Daily production report for {$rule->email}");
// Log::info("Scheduled Daily production report for {$rule->email}");
break;
}
}