Skip to content
Snippets Groups Projects
Commit 79af1b4f authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix(emails): fix author recieving wrong email

fix author receiving  email at any HE recommendation
parent 69862254
No related branches found
No related tags found
2 merge requests!34Sprint 17 features,!26fix(emails): fix author recieving wrong email
......@@ -81,16 +81,18 @@ module.exports = {
newRecommendation.recommendationType !== 'review' &&
newRecommendation.recommendation !== 'return-to-handling-editor'
) {
sendAuthorsEmail({
email,
baseUrl,
titleText,
parsedFragment,
fragmentAuthors,
isEditorInChief,
subjectBaseText,
newRecommendation,
})
if (collection.status === 'revisionRequested') {
sendAuthorsEmail({
email,
baseUrl,
titleText,
parsedFragment,
fragmentAuthors,
isEditorInChief,
subjectBaseText,
newRecommendation,
})
}
if (collection.status !== 'rejected') {
sendReviewersEmail({
email,
......
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