Skip to content

Commit

Permalink
fix(gate): Fixed update for Addresses on Site and LegalEntity update
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsilva-CGI committed Jun 27, 2023
1 parent 9457d49 commit e9a8daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class LegalEntityPersistenceService(
address.alternativePostalAddress = changeAddress.alternativePostalAddress

address.states.replace(changeAddress.states.map { toEntityAddress(it, address) })
//address.nameParts.replace(changeAddress.nameParts)
address.nameParts.replace(changeAddress.nameParts.map { toNameParts(it.namePart, address, null, null) })

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class SitePersistenceService(
address.alternativePostalAddress = changeAddress.alternativePostalAddress

address.states.replace(changeAddress.states.map { toEntityAddress(it, address) })
//address.nameParts.replace(changeAddress.nameParts)
address.nameParts.replace(changeAddress.nameParts.map { toNameParts(it.namePart, address, null, null) })
}

fun toEntityAddress(dto: AddressState, address: LogisticAddress): AddressState {
Expand Down

0 comments on commit e9a8daf

Please sign in to comment.