Added logic for order by fg line in production report
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 1m12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 56s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 2m5s
Laravel Pint / pint (pull_request) Successful in 4m0s
Laravel Larastan / larastan (pull_request) Failing after 6m10s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 1m12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 56s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 2m5s
Laravel Pint / pint (pull_request) Successful in 4m0s
Laravel Larastan / larastan (pull_request) Failing after 6m10s
This commit is contained in:
@@ -142,7 +142,10 @@ class SendProductionReport extends Command
|
||||
|
||||
foreach ($plants as $plant) {
|
||||
|
||||
$lines = Line::where('plant_id', $plant->id)->get();
|
||||
// $lines = Line::where('plant_id', $plant->id)->get();
|
||||
$lines = Line::where('plant_id', $plant->id)
|
||||
->orderByRaw("CASE WHEN LOWER(type) = 'fg line' THEN 0 ELSE 1 END")
|
||||
->get();
|
||||
|
||||
foreach ($lines as $line) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user