akjsdksajd
This commit is contained in:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user