แก้ไข org (เฉพาะหัว) เป็น children
This commit is contained in:
parent
7d6d214b98
commit
6cb0c836e2
1 changed files with 4 additions and 4 deletions
|
|
@ -409,7 +409,7 @@ export class OrganizationController extends Controller {
|
|||
orgTreePhoneIn: orgRoot.orgRootPhoneIn,
|
||||
orgTreeFax: orgRoot.orgRootFax,
|
||||
orgRevisionId: orgRoot.orgRevisionId,
|
||||
orgs: orgChild1Data
|
||||
children: orgChild1Data
|
||||
.filter((orgChild1) => orgChild1.orgRootId === orgRoot.id)
|
||||
.map((orgChild1) => ({
|
||||
orgTreeId: orgChild1.id,
|
||||
|
|
@ -424,7 +424,7 @@ export class OrganizationController extends Controller {
|
|||
orgTreePhoneIn: orgChild1.orgChild1PhoneIn,
|
||||
orgTreeFax: orgChild1.orgChild1Fax,
|
||||
orgRevisionId: orgRoot.orgRevisionId,
|
||||
orgs: orgChild2Data
|
||||
children: orgChild2Data
|
||||
.filter((orgChild2) => orgChild2.orgChild1Id === orgChild1.id)
|
||||
.map((orgChild2) => ({
|
||||
orgTreeId: orgChild2.id,
|
||||
|
|
@ -439,7 +439,7 @@ export class OrganizationController extends Controller {
|
|||
orgTreePhoneIn: orgChild2.orgChild2PhoneIn,
|
||||
orgTreeFax: orgChild2.orgChild2Fax,
|
||||
orgRevisionId: orgRoot.orgRevisionId,
|
||||
orgs: orgChild3Data
|
||||
children: orgChild3Data
|
||||
.filter((orgChild3) => orgChild3.orgChild2Id === orgChild2.id)
|
||||
.map((orgChild3) => ({
|
||||
orgTreeId: orgChild3.id,
|
||||
|
|
@ -454,7 +454,7 @@ export class OrganizationController extends Controller {
|
|||
orgTreePhoneIn: orgChild3.orgChild3PhoneIn,
|
||||
orgTreeFax: orgChild3.orgChild3Fax,
|
||||
orgRevisionId: orgRoot.orgRevisionId,
|
||||
orgs: orgChild4Data
|
||||
children: orgChild4Data
|
||||
.filter((orgChild4) => orgChild4.orgChild3Id === orgChild3.id)
|
||||
.map((orgChild4) => ({
|
||||
orgTreeId: orgChild4.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue