use of com.redhat.cloud.notifications.models.InstantEmailTemplate in project notifications-backend by RedHatInsights.
the class EmailTemplateMigrationServiceTest method findAndCompileInstantEmailTemplate.
private void findAndCompileInstantEmailTemplate(UUID eventTypeId) {
InstantEmailTemplate emailTemplate = templateRepository.findInstantEmailTemplate(eventTypeId).get();
templateService.compileTemplate(emailTemplate.getSubjectTemplate().getData(), emailTemplate.getSubjectTemplate().getName());
templateService.compileTemplate(emailTemplate.getBodyTemplate().getData(), emailTemplate.getBodyTemplate().getName());
}
Aggregations