From 18ae347122a6ecd853ecee890787ca561dda3901 Mon Sep 17 00:00:00 2001 From: Adisak Date: Thu, 18 Dec 2025 18:31:04 +0700 Subject: [PATCH] #2139 --- src/controllers/OrganizationDotnetController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/OrganizationDotnetController.ts b/src/controllers/OrganizationDotnetController.ts index 89fec9d1..443255c9 100644 --- a/src/controllers/OrganizationDotnetController.ts +++ b/src/controllers/OrganizationDotnetController.ts @@ -96,7 +96,7 @@ export class OrganizationDotnetController extends Controller { ) { let condition = "1=1"; let conditionParams = {}; - if (body.role === "CHILD" || body.role === "BROTHER") { + if (body.role === "CHILD") { switch (body.node) { case 0: condition = "orgRoot.ancestorDNA = :nodeId"; @@ -117,6 +117,7 @@ export class OrganizationDotnetController extends Controller { condition = "1=1"; break; } + conditionParams = { nodeId: body.nodeId }; } else if (body.role === "BROTHER") { switch (body.node) { case 0: