Skip to content
Snippets Groups Projects
Commit f9bb9f1d authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into develop

parents 0cfb0687 4c5971c1
No related branches found
No related tags found
1 merge request!10Sprint #12
......@@ -454,7 +454,7 @@ module.exports = {
replacements.paragraph = `I am sorry to inform you that manuscript titled "${
meta.fragment.title
}" by ${
meta.fragment.authorName
meta.fragment.submittingAuthorName
} has been rejected for publication. <br/><br/>
${meta.authorNoteText}<br/><br/>`
replacements.hasLink = false
......
......@@ -205,6 +205,9 @@ const setupAuthorsEmailData = async ({
id,
title,
authorName: toAuthor.name,
submittingAuthorName: `${submittingAuthor.firstName} ${
submittingAuthor.lastName
}`,
},
handlingEditorName: collection.handlingEditor.name,
baseUrl,
......
......@@ -68,15 +68,16 @@ module.exports = models => async (req, res) => {
collection,
recommendation,
)
await userHelper.setupAuthorsEmailData({
baseUrl,
UserModel: models.User,
collection,
mailService,
fragment: { title, submittingAuthor },
comments: get(heRecommendation, 'comments'),
requestToRevision: false,
})
if (recommendation !== 'publish')
await userHelper.setupAuthorsEmailData({
baseUrl,
UserModel: models.User,
collection,
mailService,
fragment: { title, submittingAuthor },
comments: get(heRecommendation, 'comments'),
requestToRevision: false,
})
} else if (recommendationType === 'editorRecommendation') {
await collectionHelper.updateStatusByRecommendation(
collection,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment