Skip to content
Snippets Groups Projects
Commit 4f94b4e0 authored by Tania Fecheta's avatar Tania Fecheta
Browse files

fix(sendMTSPackage): Update MTS package with : Accepted_

parent 94542180
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!101Hin 946 fixes
...@@ -12,7 +12,7 @@ const { ...@@ -12,7 +12,7 @@ const {
const { features = {}, recommendations } = config const { features = {}, recommendations } = config
const sendMTSPackage = async (collection, fragment) => { const sendMTSPackage = async (collection, fragment, isEQA = false) => {
const s3Config = get(config, 'pubsweet-component-aws-s3', {}) const s3Config = get(config, 'pubsweet-component-aws-s3', {})
const mtsConfig = get(config, 'mts-service', {}) const mtsConfig = get(config, 'mts-service', {})
const MTSService = require('pubsweet-component-mts-package') const MTSService = require('pubsweet-component-mts-package')
...@@ -27,7 +27,7 @@ const sendMTSPackage = async (collection, fragment) => { ...@@ -27,7 +27,7 @@ const sendMTSPackage = async (collection, fragment) => {
}, },
} }
await MTS.sendPackage({ fragment: packageFragment }) await MTS.sendPackage({ fragment: packageFragment, isEQA })
} }
const notifications = require('./notifications/notifications') const notifications = require('./notifications/notifications')
...@@ -112,7 +112,7 @@ module.exports = models => async (req, res) => { ...@@ -112,7 +112,7 @@ module.exports = models => async (req, res) => {
// the manuscript has not yet passed through the EQA process so we need to upload it to the FTP server // the manuscript has not yet passed through the EQA process so we need to upload it to the FTP server
if (isEditorInChief && recommendation === 'publish' && !hasEQA) { if (isEditorInChief && recommendation === 'publish' && !hasEQA) {
if (features.mts) { if (features.mts) {
await sendMTSPackage(collection, fragment) await sendMTSPackage(collection, fragment, true)
} }
collection.status = 'inQA' collection.status = 'inQA'
......
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