update patient guarantor
This commit is contained in:
@ -393,7 +393,7 @@ export class PatientGuarantorController {
|
|||||||
|
|
||||||
let param: any = await schema.validateAsync(req.params);
|
let param: any = await schema.validateAsync(req.params);
|
||||||
|
|
||||||
let data = await PatientGuarantorModel.list({ "id": param.id }).then((q) => q.getOne());
|
let data = await PatientGuarantorModel.list({ "patient_guarantor.id": param.id }).then((q) => q.getOne());
|
||||||
if (!data) throw { message: "Patient Guarantor Not Found" };
|
if (!data) throw { message: "Patient Guarantor Not Found" };
|
||||||
|
|
||||||
return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, data);
|
return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, data);
|
||||||
|
|||||||
Reference in New Issue
Block a user