Skip to content

Commit

Permalink
feat(gate): Fixed some unit test removing Saas logic on LegalEntityCo…
Browse files Browse the repository at this point in the history
…ntrollerInputIT
  • Loading branch information
cezaralexandremorais committed May 29, 2023
1 parent b8335ff commit ad6c334
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 233 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ class LegalEntityService(

fun upsertLegalEntities(legalEntities: Collection<LegalEntityGateInputRequest>) {

val legalEntitiesSaas = legalEntities.map { saasRequestMappingService.toSaasModel(it) }
saasClient.upsertLegalEntities(legalEntitiesSaas)

// create changelog entry if all goes well from saasClient
legalEntities.forEach { legalEntity ->
changelogRepository.save(ChangelogEntry(legalEntity.externalId, LsaType.LegalEntity))
Expand Down
Loading

0 comments on commit ad6c334

Please sign in to comment.