Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
pierpaolo.didato@emeal.nttdata.com authored and pierpaolo.didato@emeal.nttdata.com committed Aug 21, 2024
1 parent 5860c7d commit ba2e216
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,23 @@ public void sendMailRegistrationForContract(ExecutionContext context, Onboarding
SendMailInput sendMailInput = builderWithProductAndUserRequest(onboarding);
final String templatePath = onboardingWorkflow.emailRegistrationPath(mailTemplatePathConfig);
final String confirmTokenUrl = onboardingWorkflow.getConfirmTokenUrl(mailTemplatePlaceholdersConfig);
try {
/*try {
notificationService.sendMailRegistrationForContract(onboarding.getId(),
onboarding.getInstitution().getDigitalAddress(),
sendMailInput,
templatePath,
confirmTokenUrl);
telemetryClient.trackEvent(EVENT_ONBOARDING_FN_NAME, onboardingEventMap(onboarding), Map.of(EVENT_SEND_REGISTRATION_CONTRACT_FN_SUCCESS, 1D));
} catch (Throwable e) {
} catch (Exception e) {
telemetryClient.trackEvent(EVENT_ONBOARDING_FN_NAME, onboardingEventFailureMap(onboarding, new Exception(e)), Map.of(EVENT_SEND_REGISTRATION_CONTRACT_FN_FAILURE, 1D));
context.getLogger().severe(String.format("Impossible to send registration contract email for onboarding with ID %s %s", onboarding.getId(), Arrays.toString(e.getStackTrace())));
}
}*/

notificationService.sendMailRegistrationForContract(onboarding.getId(),
onboarding.getInstitution().getDigitalAddress(),
sendMailInput,
templatePath,
confirmTokenUrl);
}

public void sendMailRegistrationForContractAggregator(ExecutionContext context, Onboarding onboarding) {
Expand Down

0 comments on commit ba2e216

Please sign in to comment.