update
This commit is contained in:
@ -49,12 +49,17 @@ export class HospitalInformationController {
|
|||||||
|
|
||||||
if (!hospital) return ReturnHelper.errorResponse(res, 404, 404, Language.lang.failed_view, "Hospital not found");
|
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 = {
|
const result = {
|
||||||
id: hospital.id,
|
id: hospital.id,
|
||||||
name: hospital.name,
|
name: hospital.name,
|
||||||
address: hospital.address,
|
address: hospital.address,
|
||||||
phone: hospital.phone,
|
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);
|
return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, result);
|
||||||
|
|||||||
Reference in New Issue
Block a user