Skip to content

Commit

Permalink
Added log of workcontacts in user-cdc
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminiaScarciofolo committed Nov 12, 2024
1 parent e459653 commit 2fe6b61
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ public void consumerToSendScUserEvent(ChangeStreamDocument<UserInstitution> docu
log.info("Starting consumerToSendScUserEvent ... ");

userRegistryApi.findByIdUsingGET(USERS_FIELD_LIST_WITHOUT_FISCAL_CODE, userInstitutionChanged.getUserId())
.onItem().invoke(resource -> log.info("workContacts for user {} : {}",userInstitutionChanged.getUserId(),resource.getWorkContacts()))
.onFailure(this::checkIfIsRetryableException)
.retry().withBackOff(Duration.ofSeconds(retryMinBackOff), Duration.ofSeconds(retryMaxBackOff)).atMost(maxRetry)
.onItem().transformToUni(userResource -> Multi.createFrom().iterable(UserUtils.groupingProductAndReturnMinStateProduct(userInstitutionChanged.getProducts()))
Expand Down

0 comments on commit 2fe6b61

Please sign in to comment.