diff --git a/src/controllers/room.ts b/src/controllers/room.ts index 67e1a26..278d10c 100644 --- a/src/controllers/room.ts +++ b/src/controllers/room.ts @@ -64,6 +64,12 @@ export class RoomController { qb.where("Room.code ILIKE :any", { any: anyVal }).orWhere("Room.room ILIKE :any", { any: anyVal }); }), ); + + query.andWhere( + new Brackets((qb) => { + qb.where("department.name ILIKE :any", { any: anyVal }).orWhere("department.name ILIKE :any", { any: anyVal }); + }), + ); } const offset = (param.page - 1) * param.limit;