Skip to content
Snippets Groups Projects
Commit a163faff authored by kbeyro's avatar kbeyro
Browse files

reverse domain service comment

parent d43a683a
No related branches found
No related tags found
2 merge requests!273Release 1.8.0 update,!213Resolve "Support deployment of applications on remote clusters"
This commit is part of merge request !213. Comments created here will be created in the context of that merge request.
......@@ -200,7 +200,7 @@ public class DomainServiceImpl implements DomainService {
eventPublisher.publishEvent(new DomainCreatedEvent(this, new DomainCreatedEvent.DomainSpec(saved.getId(), saved.getName(), saved.getCodename(), request.getAnnotations())));
}
//call existing webhooks
// webhookEventRepository.findIdByEventType(WebhookEventType.DOMAIN_CREATION).forEach(id -> scheduleManager.createOneTimeJob(DomainCreationJob.class, "DomainCreation_" + id + "_" + saved.getId(), Map.of("webhookId", id, "domainId", saved.getId())));
webhookEventRepository.findIdByEventType(WebhookEventType.DOMAIN_CREATION).forEach(id -> scheduleManager.createOneTimeJob(DomainCreationJob.class, "DomainCreation_" + id + "_" + saved.getId(), Map.of("webhookId", id, "domainId", saved.getId())));
return saved;
} catch (Exception ex) {
throw new ProcessingException("Unable to create new domain with given name or codename.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment