From 578ea2bbe758d81b427aedd61eede19797b97612 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 8 Jan 2025 16:54:09 +0700 Subject: [PATCH] search diractor --- src/controllers/ProfileController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index d8fde6d6..29864017 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -1435,6 +1435,7 @@ export class ProfileController extends Controller { id: Not(posMaster.current_holderId), }; if (posMaster.orgChild1Id == null) { + condition.orgRootId = null; } else if (posMaster.orgChild2Id == null) { condition.orgChild1Id = null; } else if (posMaster.orgChild3Id == null) { @@ -1526,6 +1527,7 @@ export class ProfileController extends Controller { id: Not(posMaster.current_holderId), }; if (posMaster.orgChild1Id == null) { + condition.orgRootId = null; } else if (posMaster.orgChild2Id == null) { condition.orgChild1Id = null; } else if (posMaster.orgChild3Id == null) {