This commit is contained in:
wayanrivan
2026-03-08 14:42:19 +07:00
parent 21380da144
commit ae2967c719

View File

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