From 5acd4853681e633ad4d622aca9eb6f9ebeec0668 Mon Sep 17 00:00:00 2001 From: harid Date: Tue, 23 Jun 2026 16:35:30 +0700 Subject: [PATCH] fix #62 --- src/controllers/ProfileEmployeeController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index 660a36d6..21eb9a5d 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -3254,8 +3254,8 @@ export class ProfileEmployeeController extends Controller { .leftJoinAndSelect("current_holders.orgChild2", "orgChild2") .leftJoinAndSelect("current_holders.orgChild3", "orgChild3") .leftJoinAndSelect("current_holders.orgChild4", "orgChild4") - .where(node && nodeId ? "current_holders.orgRevisionId = :orgRevisionId" : "1=1", { - orgRevisionId: node && nodeId ? findRevision.id : undefined, + .where("current_holders.orgRevisionId = :orgRevisionId", { + orgRevisionId: findRevision.id, }) .andWhere( _data.root != undefined && _data.root != null