update config and add doctor filter in user list

This commit is contained in:
wayanrivan
2026-05-06 16:30:12 +07:00
parent b11ba7a53f
commit 8fe4ec584c

View File

@ -219,7 +219,7 @@ export class UserController {
.setParameters(subquery.getParameters())
.leftJoinAndSelect("User.roles", "roles")
.leftJoinAndSelect("roles.application", "application")
.where("User.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);