Skip to content
Snippets Groups Projects

Hin 850

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