Skip to content
Snippets Groups Projects

Sprint 17 features

Merged Bogdan Cochior requested to merge develop into master
1 file
+ 21
39
Compare changes
  • Side-by-side
  • Inline
@@ -116,45 +116,27 @@ module.exports = {
})
}
if (
newRecommendation.recommendationType !== 'review' &&
newRecommendation.recommendation !== 'return-to-handling-editor'
) {
if (isEditorInChief || collection.status === 'revisionRequested') {
sendAuthorsEmail({
email,
baseUrl,
titleText,
parsedFragment,
fragmentAuthors,
isEditorInChief,
subjectBaseText,
newRecommendation,
})
}
if (hasPeerReview(collection)) {
sendReviewersEmail({
email,
baseUrl,
UserModel,
titleText,
fragmentHelper,
isEditorInChief,
subjectBaseText,
recommendation: newRecommendation.recommendation,
handlingEditorName: get(collection, 'handlingEditor.name', 'N/A'),
})
sendEiCsEmail({
email,
baseUrl,
userHelper,
titleText,
subjectBaseText,
recommendation: newRecommendation,
})
}
if (hasPeerReview(collection)) {
sendReviewersEmail({
email,
baseUrl,
UserModel,
titleText,
fragmentHelper,
isEditorInChief,
subjectBaseText,
recommendation: newRecommendation.recommendation,
handlingEditorName: get(collection, 'handlingEditor.name', eicName),
})
sendEiCsEmail({
email,
baseUrl,
userHelper,
titleText,
subjectBaseText,
recommendation: newRecommendation,
})
}
}
}