revert brother privilage
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
This commit is contained in:
parent
2298d4847d
commit
34759d26a7
1 changed files with 5 additions and 4 deletions
|
|
@ -8481,6 +8481,7 @@ export class OrganizationDotnetController extends Controller {
|
|||
break;
|
||||
}
|
||||
} else if (body.role === "BROTHER") {
|
||||
// nodeId ที่รับมาเป็น DNA ของระดับพ่อแม่ (สูงกว่า 1 ระดับ) จึงต้อง query ด้วย field ของระดับพ่อแม่
|
||||
switch (body.node) {
|
||||
case 0:
|
||||
typeCondition = {
|
||||
|
|
@ -8489,22 +8490,22 @@ export class OrganizationDotnetController extends Controller {
|
|||
break;
|
||||
case 1:
|
||||
typeCondition = {
|
||||
child1DnaId: body.nodeId,
|
||||
rootDnaId: body.nodeId,
|
||||
};
|
||||
break;
|
||||
case 2:
|
||||
typeCondition = {
|
||||
child2DnaId: body.nodeId,
|
||||
child1DnaId: body.nodeId,
|
||||
};
|
||||
break;
|
||||
case 3:
|
||||
typeCondition = {
|
||||
child3DnaId: body.nodeId,
|
||||
child2DnaId: body.nodeId,
|
||||
};
|
||||
break;
|
||||
case 4:
|
||||
typeCondition = {
|
||||
child4DnaId: body.nodeId,
|
||||
child3DnaId: body.nodeId,
|
||||
};
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue