add dna
This commit is contained in:
parent
3e57b67432
commit
4036194b55
1 changed files with 12 additions and 0 deletions
|
|
@ -2056,21 +2056,27 @@ export class DevelopmentController extends Controller {
|
||||||
}
|
}
|
||||||
let node = null;
|
let node = null;
|
||||||
let nodeId = null;
|
let nodeId = null;
|
||||||
|
let nodeDnaId = null;
|
||||||
if (getDevelopment.child4Id != null) {
|
if (getDevelopment.child4Id != null) {
|
||||||
node = 4;
|
node = 4;
|
||||||
nodeId = getDevelopment.child4Id;
|
nodeId = getDevelopment.child4Id;
|
||||||
|
nodeDnaId = getDevelopment.child4DnaId;
|
||||||
} else if (getDevelopment.child3Id != null) {
|
} else if (getDevelopment.child3Id != null) {
|
||||||
node = 3;
|
node = 3;
|
||||||
nodeId = getDevelopment.child3Id;
|
nodeId = getDevelopment.child3Id;
|
||||||
|
nodeDnaId = getDevelopment.child3DnaId;
|
||||||
} else if (getDevelopment.child2Id != null) {
|
} else if (getDevelopment.child2Id != null) {
|
||||||
node = 2;
|
node = 2;
|
||||||
nodeId = getDevelopment.child2Id;
|
nodeId = getDevelopment.child2Id;
|
||||||
|
nodeDnaId = getDevelopment.child2DnaId;
|
||||||
} else if (getDevelopment.child1Id != null) {
|
} else if (getDevelopment.child1Id != null) {
|
||||||
node = 1;
|
node = 1;
|
||||||
nodeId = getDevelopment.child1Id;
|
nodeId = getDevelopment.child1Id;
|
||||||
|
nodeDnaId = getDevelopment.child1DnaId;
|
||||||
} else if (getDevelopment.rootId != null) {
|
} else if (getDevelopment.rootId != null) {
|
||||||
node = 0;
|
node = 0;
|
||||||
nodeId = getDevelopment.rootId;
|
nodeId = getDevelopment.rootId;
|
||||||
|
nodeDnaId = getDevelopment.rootDnaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
const formattedData = {
|
const formattedData = {
|
||||||
|
|
@ -2082,11 +2088,17 @@ export class DevelopmentController extends Controller {
|
||||||
objective: getDevelopment.objective,
|
objective: getDevelopment.objective,
|
||||||
node: node,
|
node: node,
|
||||||
nodeId: nodeId,
|
nodeId: nodeId,
|
||||||
|
nodeDnaId: nodeDnaId,
|
||||||
root: getDevelopment.rootId,
|
root: getDevelopment.rootId,
|
||||||
child1: getDevelopment.child1Id,
|
child1: getDevelopment.child1Id,
|
||||||
child2: getDevelopment.child2Id,
|
child2: getDevelopment.child2Id,
|
||||||
child3: getDevelopment.child3Id,
|
child3: getDevelopment.child3Id,
|
||||||
child4: getDevelopment.child4Id,
|
child4: getDevelopment.child4Id,
|
||||||
|
rootDna: getDevelopment.rootDnaId,
|
||||||
|
child1Dna: getDevelopment.child1DnaId,
|
||||||
|
child2Dna: getDevelopment.child2DnaId,
|
||||||
|
child3Dna: getDevelopment.child3DnaId,
|
||||||
|
child4Dna: getDevelopment.child4DnaId,
|
||||||
};
|
};
|
||||||
return new HttpSuccess(formattedData);
|
return new HttpSuccess(formattedData);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue