From 89db77098ea98e9d288eeb7fc594b4894fd73031 Mon Sep 17 00:00:00 2001 From: mamoss <> Date: Thu, 5 Jun 2025 15:26:47 +0700 Subject: [PATCH] filter director --- src/controllers/ProfileController.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index ec573e8e..d13a9061 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -2611,11 +2611,11 @@ export class ProfileController extends Controller { const [lists, total] = await AppDataSource.getRepository(viewDirector) .createQueryBuilder("viewDirector") // .andWhere(condition) - // .andWhere( - // new Brackets((qb) => { - // qb.orWhere(condition).orWhere(conditionNow); - // }), - // ) + .andWhere( + new Brackets((qb) => { + qb.orWhere(condition).orWhere(conditionNow); + }), + ) .andWhere( new Brackets((qb) => { qb.orWhere(