Skip to content
Snippets Groups Projects

276 user domain webhook

Merged Konstantinos Georgilakis requested to merge 276_user_domain_webhook into develop
5 files
+ 174
7
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -45,9 +45,7 @@ public class DomainCreationJob extends WebhookJob {
}
Domain domain = domainService.findDomain(domainId).orElseThrow(() -> new MissingElementException(String.format("Domain with id: %d cannot be found", domainId)));
DomainView view = modelMapper.map(domain, DomainView.class);
callWebhook(webhook, view);
callWebhook(webhook, modelMapper.map(domain, DomainView.class));
} catch (GeneralSecurityException e) {
log.error("Failed to decrypt webhook with id {}", webhookId);
throw new JobExecutionException("Failed webhook decryption");
Loading