This commit is contained in:
parent
e59ccf88b3
commit
9ba31d40eb
1 changed files with 7 additions and 1 deletions
|
|
@ -4389,7 +4389,7 @@ export class OrganizationDotnetController extends Controller {
|
|||
},
|
||||
) {
|
||||
let typeCondition: any = {};
|
||||
if (body.role === "CHILD" || body.role === "PARENT" || body.role === "ROOT") {
|
||||
if (body.role === "CHILD" || body.role === "PARENT") {
|
||||
switch (body.node) {
|
||||
case 0:
|
||||
typeCondition = {
|
||||
|
|
@ -4516,6 +4516,12 @@ export class OrganizationDotnetController extends Controller {
|
|||
typeCondition = {};
|
||||
break;
|
||||
}
|
||||
} else if (body.role === "ROOT") {
|
||||
typeCondition = {
|
||||
orgRoot: {
|
||||
ancestorDNA: body.nodeId,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
let profile = await this.profileRepo.find({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue