Skip to content
Snippets Groups Projects

Hin 1038

Merged Andrei Cioromila requested to merge hin-1038 into develop
2 files
+ 7
11
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -145,16 +145,12 @@ module.exports = models => async (req, res) => {
const hasPeerReview = !isEmpty(collection.handlingEditor)
if (isEditorInChief) {
if (
recommendation === 'publish' &&
collection.technicalChecks.token &&
['accepted', 'inQA'].includes(collection.status)
) {
if (collection.status === 'inQA') {
notification.notifyEAWhenEiCRequestsEQAApproval()
} else {
notification.notifyEAWhenEiCMakesFinalDecision()
}
if (recommendation === 'publish' && collection.status === 'inQA') {
notification.notifyEAWhenEiCRequestsEQAApproval()
}
if (recommendation === 'publish' && collection.status === 'accepted') {
notification.notifyEAWhenEiCMakesFinalDecision()
}
if (hasPeerReview && (recommendation !== 'publish' || hasEQA)) {