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 ({
})
}
const setupReviewerUnassignEmail = async (
models,
const setupReviewerUnassignEmail = async ({
UserModel,
FragmentModel,
collection,
user,
mailService,
) => {
}) => {
const { title, authorName } = await collectionHelper.getFragmentAndAuthorData(
models,
collection,
{
UserModel,
FragmentModel,
collection,
},
)
await mailService.setupReviewerUnassignEmail(
......
......@@ -50,12 +50,13 @@ module.exports = models => async (req, res) => {
'revoke-handling-editor',
)
} else if (invitation.role === 'reviewer') {
await userHelper.setupReviewerUnassignEmail(
models,
await userHelper.setupReviewerUnassignEmail({
UserModel: models.User,
FragmentModel: models.Fragment,
collection,
user,
mailService,
)
})
}
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