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;
|
break;
|
||||||
}
|
}
|
||||||
} else if (body.role === "BROTHER") {
|
} else if (body.role === "BROTHER") {
|
||||||
|
// nodeId ที่รับมาเป็น DNA ของระดับพ่อแม่ (สูงกว่า 1 ระดับ) จึงต้อง query ด้วย field ของระดับพ่อแม่
|
||||||
switch (body.node) {
|
switch (body.node) {
|
||||||
case 0:
|
case 0:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
|
|
@ -8489,22 +8490,22 @@ export class OrganizationDotnetController extends Controller {
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
child1DnaId: body.nodeId,
|
rootDnaId: body.nodeId,
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
child2DnaId: body.nodeId,
|
child1DnaId: body.nodeId,
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
child3DnaId: body.nodeId,
|
child2DnaId: body.nodeId,
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
child4DnaId: body.nodeId,
|
child3DnaId: body.nodeId,
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue