Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
4f94b4e0
Commit
4f94b4e0
authored
6 years ago
by
Tania Fecheta
Browse files
Options
Downloads
Patches
Plain Diff
fix(sendMTSPackage): Update MTS package with : Accepted_
parent
94542180
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!110
Sprint 21 Features
,
!101
Hin 946 fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/component-manuscript-manager/src/routes/fragmentsRecommendations/post.js
+3
-3
3 additions, 3 deletions
...cript-manager/src/routes/fragmentsRecommendations/post.js
with
3 additions
and
3 deletions
packages/component-manuscript-manager/src/routes/fragmentsRecommendations/post.js
+
3
−
3
View file @
4f94b4e0
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment