Skip to content
Snippets Groups Projects

Hin 1038

Merged Andrei Cioromila requested to merge hin-1038 into develop
Files
16
@@ -4,19 +4,13 @@ const { services } = require('pubsweet-component-helper-service')
const { getEmailCopy } = require('./emailCopy')
const confirmSignUp = config.get('confirm-signup.url')
const { name: journalName, staffEmail } = config.get('journal')
module.exports = {
sendNewUserEmail: ({ email, role }) => {
email.content.subject = 'Confirm your account'
let emailType
if (role === 'Handling Editor') {
emailType = 'he-added-by-admin'
email.fromEmail = `${journalName} <${staffEmail}>`
} else {
emailType = 'user-added-by-admin'
}
const emailType =
role === 'Handling Editor' ? 'he-added-by-admin' : 'user-added-by-admin'
const { html, text } = email.getNotificationBody({
emailBodyProps: getEmailCopy({