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'])