From e4253756e4114963250df2a8481c2d886a360683 Mon Sep 17 00:00:00 2001 From: ivan-sim Date: Thu, 17 Oct 2024 14:14:05 +0700 Subject: [PATCH] Update --- Modules/HospitalPortal/Http/Controllers/ApotekController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/HospitalPortal/Http/Controllers/ApotekController.php b/Modules/HospitalPortal/Http/Controllers/ApotekController.php index 6da003f9..8967dcd0 100644 --- a/Modules/HospitalPortal/Http/Controllers/ApotekController.php +++ b/Modules/HospitalPortal/Http/Controllers/ApotekController.php @@ -244,9 +244,9 @@ class ApotekController extends Controller return $item; }); $apotek_phone = DB::connection('mysql')->table('organizations') - ->leftJoin('addresses', 'addresses.id','=', 'organizations.main_address_id') + // ->leftJoin('addresses', 'addresses.id','=', 'organizations.main_address_id') ->whereIn('organizations.id', $apotekIds) - ->pluck('addresses.phone', 'organizations.id'); + ->pluck('organizations.phone', 'organizations.id'); $results->getCollection()->transform(function ($item) use ($apotek_phone) { $item->phone_apotek = $apotek_phone->get($item->nIDApotek, '-'); // Default to 'Unknown' if not found return $item;