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

feat(component-manuscript-manager): add publish status

parent 47115a2d
No related branches found
No related tags found
1 merge request!10Sprint #12
......@@ -68,15 +68,16 @@ module.exports = models => async (req, res) => {
collection,
recommendation,
)
await userHelper.setupAuthorsEmailData({
baseUrl,
UserModel: models.User,
collection,
mailService,
fragment: { title, submittingAuthor },
comments: get(heRecommendation, 'comments'),
requestToRevision: false,
})
if (recommendation !== 'publish')
await userHelper.setupAuthorsEmailData({
baseUrl,
UserModel: models.User,
collection,
mailService,
fragment: { title, submittingAuthor },
comments: get(heRecommendation, 'comments'),
requestToRevision: false,
})
} else if (recommendationType === 'editorRecommendation') {
await collectionHelper.updateStatusByRecommendation(
collection,
......
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