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) => { ...@@ -68,15 +68,16 @@ module.exports = models => async (req, res) => {
collection, collection,
recommendation, recommendation,
) )
await userHelper.setupAuthorsEmailData({ if (recommendation !== 'publish')
baseUrl, await userHelper.setupAuthorsEmailData({
UserModel: models.User, baseUrl,
collection, UserModel: models.User,
mailService, collection,
fragment: { title, submittingAuthor }, mailService,
comments: get(heRecommendation, 'comments'), fragment: { title, submittingAuthor },
requestToRevision: false, comments: get(heRecommendation, 'comments'),
}) requestToRevision: false,
})
} else if (recommendationType === 'editorRecommendation') { } else if (recommendationType === 'editorRecommendation') {
await collectionHelper.updateStatusByRecommendation( await collectionHelper.updateStatusByRecommendation(
collection, 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