Skip to content
Snippets Groups Projects
Commit 4370bdc1 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into develop

parents 93a5b319 37ec6d26
No related branches found
No related tags found
1 merge request!13Sprint #14
const config = require('config')
const statuses = config.get('statuses')
class Collection {
constructor({ collection = {} }) {
this.collection = collection
......@@ -51,7 +47,6 @@ class Collection {
async updateStatus({ newStatus }) {
this.collection.status = newStatus
this.collection.visibleStatus = statuses[this.collection.status].private
await this.collection.save()
}
......
const config = require('config')
const mailService = require('pubsweet-component-mail-service')
const {
......@@ -7,7 +6,6 @@ const {
authsome: authsomeHelper,
} = require('pubsweet-component-helper-service')
const statuses = config.get('statuses')
module.exports = models => async (req, res) => {
const { collectionId, invitationId } = req.params
const teamHelper = new Team({ TeamModel: models.Team, collectionId })
......@@ -45,7 +43,6 @@ module.exports = models => async (req, res) => {
)
collection.status = 'submitted'
collection.visibleStatus = statuses[collection.status].private
delete collection.handlingEditor
await collection.save()
......
......@@ -10,7 +10,6 @@ module.exports = {
customId: Joi.string(),
invitations: Joi.array(),
handlingEditor: Joi.object(),
visibleStatus: Joi.string().allow(''),
},
fragment: [
{
......
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