Changed logic for laser idle report
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 4m34s
Laravel Larastan / larastan (pull_request) Failing after 7m30s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 4m34s
Laravel Larastan / larastan (pull_request) Failing after 7m30s
This commit is contained in:
@@ -89,12 +89,18 @@ class SendLaserIdleHourReport extends Command
|
||||
|
||||
$motorCount = $machineRecords
|
||||
->where('motor_machine_name', $machineName)
|
||||
->filter(function ($record) {
|
||||
return (float) ($record->motor_marked_physical_count ?? 0) > 0;
|
||||
})
|
||||
->sum(function ($record) {
|
||||
return (float) ($record->motor_marked_physical_count ?? 0);
|
||||
});
|
||||
|
||||
$pumpCount = $machineRecords
|
||||
->where('pump_machine_name', $machineName)
|
||||
->filter(function ($record) {
|
||||
return (float) ($record->pump_marked_physical_count ?? 0) > 0;
|
||||
})
|
||||
->sum(function ($record) {
|
||||
return (float) ($record->pump_marked_physical_count ?? 0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user