Skip to content
Snippets Groups Projects
Commit 7a87ca7c authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

fix(recommendations): send email to HE when rev publish

parent a721cddd
No related branches found
No related tags found
3 merge requests!58Sprint #20 - Goal - Reviewers submit report,!57HIN-974,!55WIP: HIN-855 feat(reviewer-report): reviewer report form
...@@ -74,10 +74,12 @@ module.exports = { ...@@ -74,10 +74,12 @@ module.exports = {
// send HE emails when a review is submitted // send HE emails when a review is submitted
// or when the EiC makes a recommendation after peer review // or when the EiC makes a recommendation after peer review
if ( if (
(isEditorInChief || recommendationType === 'review') && recommendationType === 'review' ||
hasPeerReview && (isEditorInChief &&
(recommendation !== 'publish' || hasEQA) hasPeerReview &&
(recommendation !== 'publish' || hasEQA))
) { ) {
const handlingEditor = get(collection, 'handlingEditor', {}) const handlingEditor = get(collection, 'handlingEditor', {})
const heUser = await UserModel.find(handlingEditor.id) const heUser = await UserModel.find(handlingEditor.id)
......
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