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);