akjsdksajd

This commit is contained in:
wayanrivan
2026-05-06 16:40:37 +07:00
parent 27e801ddf6
commit 52536407fb

View File

@ -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);