Skip to content
Snippets Groups Projects
Commit 4216da27 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

refactor(mts): remove unused params

parent 7d4fa012
No related branches found
No related tags found
2 merge requests!21Sprint #16 features,!15MTS integration
......@@ -219,7 +219,7 @@ class MTS {
sendPackage(fragment = {}) {
const xmlFile = this.convertFragmentToXML(fragment)
return PackageManager.createFilesPackage(this.s3Config, this.ftpConfig)({
return PackageManager.createFilesPackage(this.s3Config)({
fragment,
xmlFile,
}).then(() => {
......
......@@ -9,7 +9,7 @@ const logger = require('@pubsweet/logger')
const filterByType = (fileTypes = []) => ({ Metadata: { filetype } }) =>
fileTypes.length > 0 ? fileTypes.includes(filetype) : true
const createFilesPackage = (s3Config, ftpConfig, archiver = nodeArchiver) => {
const createFilesPackage = (s3Config, archiver = nodeArchiver) => {
AWS.config.update({
secretAccessKey: s3Config.secretAccessKey,
accessKeyId: s3Config.accessKeyId,
......
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