diff --git a/packages/component-invite/src/routes/fragmentsInvitations/post.js b/packages/component-invite/src/routes/fragmentsInvitations/post.js index 1a441531473daef14c295e408fc86e7d57fed96d..0e45b83faac29aef7b05b2ca588cf07b6dc7fb0e 100644 --- a/packages/component-invite/src/routes/fragmentsInvitations/post.js +++ b/packages/component-invite/src/routes/fragmentsInvitations/post.js @@ -4,6 +4,7 @@ const { services, Collection, Invitation, + Fragment, authsome: authsomeHelper, } = require('pubsweet-component-helper-service') @@ -116,7 +117,12 @@ module.exports = models => async (req, res) => { }) } - if (collection.status === 'heAssigned') { + const fragmentHelper = new Fragment({ fragment }) + if ( + collection.status === 'heAssigned' || + (collection.status === 'reviewCompleted' && + !fragmentHelper.hasReviewReport()) + ) { collectionHelper.updateStatus({ newStatus: 'reviewersInvited' }) }