diff --git a/src/controllers/user.ts b/src/controllers/user.ts index 5b59f6f..99ac4fe 100644 --- a/src/controllers/user.ts +++ b/src/controllers/user.ts @@ -206,7 +206,7 @@ export class UserController { col_any_like: ["User.name", "User.username"], additional_where: "roles.name = :doctor_role_name", }); - whereVal.doctor_role_name = "Doctor"; + // whereVal.doctor_role_name = "Doctor"; const res_count = userRepository.createQueryBuilder("User").leftJoin("User.roles", "roles").where(whereAttr, whereVal); @@ -219,7 +219,7 @@ export class UserController { .setParameters(subquery.getParameters()) .leftJoinAndSelect("User.roles", "roles") .leftJoinAndSelect("roles.application", "application") - .where("roles.is_doctor = :is_doctor", { is_doctor: 'true' }) + .where("roles.is_doctor = :is_doctor", { is_doctor: true }) .orderBy("User." + param.order_field, param.order_direction) .distinct(true);