Skip to content
Snippets Groups Projects
Commit 8faa8420 authored by Andrei Cioromila's avatar Andrei Cioromila
Browse files

fix(helper-service): update manuscript status to 'heAssigned' after minor...

fix(helper-service): update manuscript status to 'heAssigned' after minor recommendation if there are no previous reviews
parent 099dde64
No related branches found
No related tags found
3 merge requests!162Sprint 23 Features,!161Deploy S23 features and fixes,!159Hin 1153 status after review
...@@ -10,6 +10,7 @@ class Collection { ...@@ -10,6 +10,7 @@ class Collection {
async updateStatusByRecommendation({ async updateStatusByRecommendation({
recommendation, recommendation,
isHandlingEditor = false, isHandlingEditor = false,
fragments,
}) { }) {
let newStatus let newStatus
if (isHandlingEditor) { if (isHandlingEditor) {
...@@ -19,7 +20,9 @@ class Collection { ...@@ -19,7 +20,9 @@ class Collection {
} }
} else { } else {
if (recommendation === 'minor') { if (recommendation === 'minor') {
newStatus = 'reviewCompleted' newStatus = this.hasAtLeastOneReviewReport(fragments)
? 'reviewCompleted'
: 'heAssigned'
} }
if (recommendation === 'major') { if (recommendation === 'major') {
......
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