diff --git a/packages/component-helper-service/src/services/Email.js b/packages/component-helper-service/src/services/Email.js index 7e7bcd4510219d5a712d0c71b0f2f05585f075ed..79af429371ce0bfd4f37328f34b71b09f7965ddf 100644 --- a/packages/component-helper-service/src/services/Email.js +++ b/packages/component-helper-service/src/services/Email.js @@ -32,6 +32,7 @@ class Email { FragmentModel, }) { const { + baseUrl, UserModel, collection, parsedFragment: { recommendations, title, type, id }, @@ -83,6 +84,7 @@ class Email { reviewers.forEach(user => mailService.sendNotificationEmail({ + baseUrl, emailType, toEmail: user.email, meta: { @@ -178,15 +180,15 @@ class Email { if (returnWithComments) emailType = 'he-manuscript-return-with-comments' mailService.sendNotificationEmail({ toEmail, - baseUrl, emailType, meta: { + baseUrl, collection, reviewerName, eicComments, eicName: `${eic.firstName} ${eic.lastName}`, - handlingEditorName: get(collection, 'handlingEditor.name') || '', emailSubject: `${collection.customId}: Manuscript Decision`, + handlingEditorName: get(collection, 'handlingEditor.name') || '', fragment: { id, title,