diff --git a/app/Console/Commands/SendProcessOrderReport.php b/app/Console/Commands/SendProcessOrderReport.php index 9f7ccf80..c8117b4f 100644 --- a/app/Console/Commands/SendProcessOrderReport.php +++ b/app/Console/Commands/SendProcessOrderReport.php @@ -35,7 +35,7 @@ class SendProcessOrderReport extends Command $scheduleType = $this->argument('schedule_type'); $plantId = (int) $this->argument('plant'); - $mailRules = AlertMailRule::where('module', 'ProcessOrder') + $mailRules = AlertMailRule::where('module', 'ProcessOrderReport') ->where('rule_name', 'ProcessOrderMail') ->where('schedule_type', $scheduleType) ->where('plant', $plantId)