diff --git a/packages/component-helper-service/src/services/Collection.js b/packages/component-helper-service/src/services/Collection.js index cd57c09886202cd7e97766fd155a57802e2af3a9..80739bc11de6d91251d7059c197dffb973425682 100644 --- a/packages/component-helper-service/src/services/Collection.js +++ b/packages/component-helper-service/src/services/Collection.js @@ -48,25 +48,6 @@ class Collection { return this.updateStatus({ newStatus }) } - async updateFinalStatusByRecommendation({ recommendation }) { - let newStatus - switch (recommendation) { - case 'reject': - newStatus = 'rejected' - break - case 'publish': - newStatus = 'accepted' - break - case 'return-to-handling-editor': - newStatus = 'reviewCompleted' - break - default: - break - } - - await this.updateStatus({ newStatus }) - } - async updateStatus({ newStatus }) { this.collection.status = newStatus await this.collection.save() @@ -104,21 +85,6 @@ class Collection { await this.updateStatus({ newStatus: 'heAssigned' }) } - async updateStatusOnRecommendation({ isEditorInChief, recommendation }) { - if (isEditorInChief) { - if (recommendation === 'return-to-handling-editor') { - return this.updateStatus({ newStatus: 'reviewCompleted' }) - } - return this.updateFinalStatusByRecommendation({ - recommendation, - }) - } - return this.updateStatusByRecommendation({ - recommendation, - isHandlingEditor: true, - }) - } - getHELastName() { const [firstName, lastName] = this.collection.handlingEditor.name.split(' ') return lastName || firstName