Merge remote-tracking branch 'origin/staging' into origin/production
This commit is contained in:
@@ -175,8 +175,12 @@ class DataServiceMonitoring extends JsonResource
|
||||
->groupBy(function ($requestLogDailyMonitoring) {
|
||||
return Carbon::parse($requestLogDailyMonitoring->lab_date)->format('d M Y');
|
||||
})
|
||||
->filter(function ($groupedItems) {
|
||||
return !is_null($groupedItems->first()->lab_date);
|
||||
})
|
||||
->map(function ($groupedItems) {
|
||||
return collect($groupedItems)
|
||||
|
||||
->map(function ($test) {
|
||||
$arr_document = [];
|
||||
$document = DB::table('files')
|
||||
@@ -197,6 +201,7 @@ class DataServiceMonitoring extends JsonResource
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
'code' => $test->code,
|
||||
'date' => Carbon::parse($test->lab_date)->format('d M Y') ?? null,
|
||||
|
||||
Reference in New Issue
Block a user