From f05716756b54f7a09ae34c9c699d4a45347f74fe Mon Sep 17 00:00:00 2001 From: Tb Fajri Date: Sun, 7 Jan 2024 22:25:52 +0700 Subject: [PATCH] update fix listing final log --- .../Internal/Http/Controllers/Api/RequestLogController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/Internal/Http/Controllers/Api/RequestLogController.php b/Modules/Internal/Http/Controllers/Api/RequestLogController.php index bf66f5ac..391f1a77 100644 --- a/Modules/Internal/Http/Controllers/Api/RequestLogController.php +++ b/Modules/Internal/Http/Controllers/Api/RequestLogController.php @@ -62,7 +62,11 @@ class RequestLogController extends Controller $q->where('final_log', $final_log); }) ->when($request->service_code, function($q, $service_code) { - $q->where('service_code', $service_code); + if ($service_code == 'IP'){ // Penjagaan sementara agar ini hanya muncul di inpatient monitoring + $q->where('service_code', $service_code); + } else { + $q->where('service_code', '!=', 'IP'); // Dan selain IP muncul di final LOG + } }) // ->where('status', $request->status) ->with(['member', 'files', 'service', 'member.currentPolicy'])