Skip to content

Commit

Permalink
Api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitolo-Andrea committed Dec 13, 2024
1 parent 95bf092 commit 349e324
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Mono<CitizenConsentDTO> createCitizenConsent(String fiscalCode, String tp
.tcDate(LocalDateTime.now())
.build());
return citizenRepository.save(citizenConsent)
.map(savedConsent -> mapperToDTO.map(citizenConsent));
.flatMap(savedConsent -> Mono.just(mapperToDTO.map(citizenConsent)));
}
Map<String, ConsentDetails> consents = new HashMap<>();
consents.put(tppId, citizenConsent.getConsents().get(tppId));
Expand Down

0 comments on commit 349e324

Please sign in to comment.