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

Merge branch 'develop' of https://gitlab.coko.foundation/xpub/xpub-faraday into develop

parents c9a8c380 e742c798
No related branches found
No related tags found
1 merge request!6Agree/Decline to work on a manuscript
...@@ -74,15 +74,19 @@ const setupReviewerDecisionEmailData = async ({ ...@@ -74,15 +74,19 @@ const setupReviewerDecisionEmailData = async ({
}) })
} }
const setupReviewerUnassignEmail = async ( const setupReviewerUnassignEmail = async ({
models, UserModel,
FragmentModel,
collection, collection,
user, user,
mailService, mailService,
) => { }) => {
const { title, authorName } = await collectionHelper.getFragmentAndAuthorData( const { title, authorName } = await collectionHelper.getFragmentAndAuthorData(
models, {
collection, UserModel,
FragmentModel,
collection,
},
) )
await mailService.setupReviewerUnassignEmail( await mailService.setupReviewerUnassignEmail(
......
...@@ -50,12 +50,13 @@ module.exports = models => async (req, res) => { ...@@ -50,12 +50,13 @@ module.exports = models => async (req, res) => {
'revoke-handling-editor', 'revoke-handling-editor',
) )
} else if (invitation.role === 'reviewer') { } else if (invitation.role === 'reviewer') {
await userHelper.setupReviewerUnassignEmail( await userHelper.setupReviewerUnassignEmail({
models, UserModel: models.User,
FragmentModel: models.Fragment,
collection, collection,
user, user,
mailService, mailService,
) })
} }
return res.status(200).json({}) return res.status(200).json({})
......
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