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(); ->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;
} }
} }