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: