diff --git a/packages/component-manuscript-manager/src/routes/fragmentsRecommendations/post.js b/packages/component-manuscript-manager/src/routes/fragmentsRecommendations/post.js index 7f52662bcf1827678e2290dee2f394b66285d813..2ac0d2a6348357d8487768976ad7edd84145afb0 100644 --- a/packages/component-manuscript-manager/src/routes/fragmentsRecommendations/post.js +++ b/packages/component-manuscript-manager/src/routes/fragmentsRecommendations/post.js @@ -89,15 +89,16 @@ module.exports = models => async (req, res) => { fragment: { title, id, authorName }, comments: newRecommendation.comments, }) - await userHelper.setupAuthorRequestToRevisionEmailData({ - baseUrl, - UserModel: models.User, - collection, - mailService, - recommendation, - fragment: { title, id, submittingAuthor }, - comments: newRecommendation.comments, - }) + if (['minor', 'major'].includes(recommendation)) + await userHelper.setupAuthorRequestToRevisionEmailData({ + baseUrl, + UserModel: models.User, + collection, + mailService, + recommendation, + fragment: { title, id, submittingAuthor }, + comments: newRecommendation.comments, + }) } fragment.recommendations.push(newRecommendation)