Skip to content
Snippets Groups Projects
Commit a2333d2e authored by Sebastian Mihalache's avatar Sebastian Mihalache :hammer_pick:
Browse files

fix(manuscript-manager): fix commented code, reinstantiate fragmentHelper

parent d4295d63
No related branches found
No related tags found
3 merge requests!160Update staging with master features,!156Develop,!148Hin 1098
......@@ -16,7 +16,7 @@ const sendMTSPackage = async (collection, fragment) => {
const { sendPackage } = require('pubsweet-component-mts-package')
const { journal, xmlParser, ftp } = mtsConfig
// const MTS = new MTSService(journal, xmlParser, s3Config, ftp)
const packageFragment = {
...fragment,
metadata: {
......@@ -25,7 +25,6 @@ const sendMTSPackage = async (collection, fragment) => {
},
}
// await MTS.sendPackage({ fragment: packageFragment })
await sendPackage({
s3Config,
ftpConfig: ftp,
......
......@@ -96,7 +96,8 @@ module.exports = models => async (req, res) => {
if (features.mts) {
collection.fragments.forEach(async fragmentId => {
const fragment = await models.Fragment.find(fragmentId)
fragmentHelper.fragment = fragment
const fragmentHelper = new Fragment({ fragment })
const fragmentUsers = await fragmentHelper.getReviewersAndEditorsData(
{
collection,
......
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