Skip to content

Commit

Permalink
Split upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitolo-Andrea committed Nov 13, 2024
1 parent f42ed1b commit 3ebb4b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/it/gov/pagopa/tpp/service/TppServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public Mono<TppDTO> updateExistingTpp(TppDTO tppDTO) {
existingTpp.setMessageUrl(tppDTO.getMessageUrl());
existingTpp.setContact(tppDTO.getContact());
existingTpp.setBusinessName(tppDTO.getBusinessName());
existingTpp.setLegalAddress(tppDTO.getLegalAddress());

return tppRepository.save(existingTpp)
.map(mapperToDTO::map)
.doOnSuccess(savedTpp -> log.info("[TPP-SERVICE][UPSERT] Updated existing TPP with tppId: {}", existingTpp.getTppId()))
Expand Down

0 comments on commit 3ebb4b7

Please sign in to comment.