update patient guarantor

This commit is contained in:
wayanrivan
2026-03-31 14:17:54 +07:00
parent ccd57b5ce4
commit eab31e95fe

View File

@ -393,7 +393,7 @@ export class PatientGuarantorController {
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" };
return ReturnHelper.successResponseAny(res, 200, Language.lang.success_view, data);