Skip to content
Snippets Groups Projects
Commit 912aaa33 authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

fix(ReviewerEmailHERemoved): Emails send to both accepted and submitted reviewers now

parent 8a3c8e40
No related branches found
No related tags found
3 merge requests!196S25 - EiC submit revision,!189S25,!173feat(ReviewerEmailHERemoved): Created email template and implemented code for sending it
......@@ -121,10 +121,16 @@ module.exports = models => async (req, res) => {
shouldAuthorBeNotified = true
}
const reviewers = await fragmentHelper.getReviewers({
UserModel,
type: 'accepted',
})
const reviewers = await Promise.all([
...(await fragmentHelper.getReviewers({
UserModel,
type: 'accepted',
})),
...(await fragmentHelper.getReviewers({
UserModel,
type: 'submitted',
})),
])
fragment.invitations = []
fragment.recommendations = []
......
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