diff --git a/app/Console/Commands/SendLaserIdleHourReport.php b/app/Console/Commands/SendLaserIdleHourReport.php index 58d7fce2e3..66f20f4e91 100644 --- a/app/Console/Commands/SendLaserIdleHourReport.php +++ b/app/Console/Commands/SendLaserIdleHourReport.php @@ -122,7 +122,7 @@ class SendLaserIdleHourReport extends Command return (float) ($record->man_marked_status ?? 0); }); - $machineDes = Configuration::where('plant_id', $plantId)->where('c_type', 'MACHINE NAME')->where('c_name', $machineName)->first(); + $machineDes = Configuration::where('plant_id', $plant->id)->where('c_type', 'MACHINE NAME')->where('c_name', $machineName)->first(); $totalExpectedMilliseconds = $machineRecords