Skip to content

Commit

Permalink
Update engine/src/main/java/com/redhat/cloud/notifications/templates/…
Browse files Browse the repository at this point in the history
…EmailTemplateMigrationService.java

Co-authored-by: Gwenneg Lepage <[email protected]>
  • Loading branch information
g-duval and gwenneg authored Nov 19, 2024
1 parent 18bab47 commit edbaf5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,8 @@ private void createInstantEmailTemplate(List<String> warnings, String bundleName
entityManager.persist(emailTemplate);
} else {
InstantEmailTemplate emailTemplate = optInstantEmailTemplate.get();
if (bodyTemplate.getId() != emailTemplate.getBodyTemplateId() ||
subjectTemplate.getId() != emailTemplate.getSubjectTemplateId()) {
if (!bodyTemplate.getId().equals(emailTemplate.getBodyTemplateId()) ||
!subjectTemplate.getId().equals(emailTemplate.getSubjectTemplateId())) {
emailTemplate.setSubjectTemplate(subjectTemplate);
emailTemplate.setSubjectTemplateId(subjectTemplate.getId());
emailTemplate.setBodyTemplate(bodyTemplate);
Expand Down

0 comments on commit edbaf5a

Please sign in to comment.