Skip to content
Snippets Groups Projects

feat: [AoU-421] create notifications for all publication's validators when a...

Merged Nicolas.Rod requested to merge rodn-421-notifications-deposits-to-validate into master
All threads resolved!
@@ -53,7 +53,7 @@ public class EmailJmsListener extends MessageProcessor<EmailMessage> {
try {
switch (emailMessage.getTemplate()) {
case NEW_DEPOSITS_TO_VALIDATE:
this.sendNewDepositsToValidateEmail(emailMessage);
this.sendEmailWithNewDepositsToValidate(emailMessage);
break;
case NEW_SUBSCRIPTION:
case REMOVE_SUBSCRIPTION:
@@ -71,7 +71,7 @@ public class EmailJmsListener extends MessageProcessor<EmailMessage> {
}
}
private void sendNewDepositsToValidateEmail(EmailMessage emailMessage) throws MessagingException {
private void sendEmailWithNewDepositsToValidate(EmailMessage emailMessage) throws MessagingException {
List<Publication> publications = new ArrayList<>();
for (String publicationId : emailMessage.getParameters()) {
publications.add(this.publicationService.findOne(publicationId));
Loading