This commit is contained in:
Narul Hidayah
2026-02-11 14:51:06 +07:00
parent bc4cb35f54
commit fdbab38b37
3 changed files with 14 additions and 6 deletions

View File

@ -13,7 +13,9 @@ export class DoctorScheduleModel {
whereVal = { ...whereVal, ...CommonHelper.handleQueryFilter(filter).whereVal };
}
var query = repo.createQueryBuilder("DoctorSchedule").leftJoinAndSelect("DoctorSchedule.room", "Room");
var query = repo.createQueryBuilder("DoctorSchedule")
.leftJoinAndSelect("DoctorSchedule.doctor", "doctor")
.leftJoinAndSelect("DoctorSchedule.room", "Room");
if (whereAttr.length != 0) {
query = query.where(whereAttr.join(" and "), whereVal);
}