udp
This commit is contained in:
@ -223,7 +223,7 @@ export class DoctorScheduleController {
|
||||
|
||||
let affected = 0;
|
||||
if (!param.hard) {
|
||||
let doctorSchedule: DoctorSchedule = await DoctorScheduleModel.list({ id: param.id }).then((q) => q.getOne());
|
||||
let doctorSchedule: DoctorSchedule = await DoctorScheduleModel.list({ "DoctorSchedule.id": param.id }).then((q) => q.getOne());
|
||||
|
||||
if (!doctorSchedule) throw { message: "Doctor Schedule " + Language.lang.failed_not_found };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user