Skip to content
Snippets Groups Projects
Commit 78efa5ad authored by Sebastian Mihalache's avatar Sebastian Mihalache :hammer_pick:
Browse files

refactor(recommendationsEmails): remove unused code

parent cec7344f
No related branches found
No related tags found
1 merge request!115Hin 1038
......@@ -344,11 +344,6 @@ class Notification {
},
})
// email = helpers.updateEmailContentForSA({
// email,
// customId,
// signatureName: get(collection, 'handlingEditor.name', eicName),
// })
const { html, text } = email.getNotificationBody({
emailBodyProps: {
paragraph: author.paragraph,
......
......@@ -170,19 +170,10 @@ module.exports = models => async (req, res) => {
notification.notifyReviewersWhenEiCMakesDecision()
}
} else {
notification.notifySAWhenHERequestsRevision()
const hasPeerReview = !isEmpty(collection.handlingEditor)
if (hasPeerReview) {
notification.notifyReviewersWhenHEMakesRecommendation()
}
// notifications.sendNotificationsWhenHEMakesRecommendation({
// fragment,
// collection,
// newRecommendation,
// UserModel: models.User,
// baseUrl: services.getBaseUrl(req),
// })
if (collection.status === 'revisionRequested') {
notification.notifySAWhenHERequestsRevision()
}
......
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