From ae2967c71981c04b801f45a846dc7d1564068bac Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Sun, 8 Mar 2026 14:42:19 +0700 Subject: [PATCH] update --- src/controllers/hospital_information.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/hospital_information.ts b/src/controllers/hospital_information.ts index c3ad55d..cbef8aa 100644 --- a/src/controllers/hospital_information.ts +++ b/src/controllers/hospital_information.ts @@ -49,12 +49,17 @@ export class HospitalInformationController { if (!hospital) return ReturnHelper.errorResponse(res, 404, 404, Language.lang.failed_view, "Hospital not found"); + let hospitallogo = ''; + if (hospital.logo != null && hospital.logo != undefined && hospital.logo != '') { + hospitallogo = 'https://his.shiblysolution.id/service-master-data/uploads/hospital-logo/' + hospital.logo; + } + const result = { id: hospital.id, name: hospital.name, address: hospital.address, phone: hospital.phone, - logo: 'https://his.shiblysolution.id/service-master-data/uploads/hospital-logo/' + hospital.logo + logo: hospitallogo }; return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, result);