From 26ca75bf79afe125f1fadae1526b644212086c72 Mon Sep 17 00:00:00 2001 From: Linksehat Staging Server Date: Tue, 16 Jan 2024 22:06:59 +0700 Subject: [PATCH] bugs fix ttd final log --- .../Http/Controllers/Api/RequestLogController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php b/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php index 2b3ac399..d3e902a9 100644 --- a/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php +++ b/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php @@ -711,13 +711,13 @@ class RequestLogController extends Controller ->leftJoin('files', 'files.fileable_id', '=', 'signatures.id') ->where('files.fileable_type', '=', 'App\Models\Signature') ->where('signatures.type', '=', 2) - ->where('signatures.user_id', '=', $dataRequestLog->approved_by) + ->where('signatures.user_id', '=', $dataRequestLog->approved_final_log_by) ->select( 'files.path', DB::raw(' (Select persons.name FROM users LEFT JOIN persons ON users.person_id = persons.id - WHERE users.id = "'.$dataRequestLog->approved_by.'" LIMIT 1) AS name_approve + WHERE users.id = "'.$dataRequestLog->approved_final_log_by.'" LIMIT 1) AS name_approve ') ) ->first();