Commit 1255b7dc authored by MoSelim's avatar MoSelim
parent 6033ac15
Pipeline #11996 passed with stages
in 5 minutes and 31 seconds
......@@ -12,7 +12,8 @@ RUN apt-get install -y libdbus-glib-1-2
RUN cd /opt && wget http://ftp.mozilla.org/pub/firefox/releases/57.0.4/linux-x86_64/en-GB/firefox-57.0.4.tar.bz2 && \
tar xjf firefox-*.tar.bz2 && \
ln -s /opt/firefox/firefox /usr/local/bin/
# install zip command
RUN apt-get install zip unzip
# RUN apt-get install -y default-jdk libstdc++6
RUN apt-get install -y default-jdk
#COPY node-libxml node-libxml
......
......@@ -40,10 +40,7 @@ async function toNcbi() {
compress(tmpPath, manuscript).then(destination => {
send(destination, manuscript).then(() => {
tidyUp(tmpPath)
updateManuscriptNcbiStatus(manuscript).then(() => {
ManuscriptAccess.knex().destroy()
process.exit()
})
updateManuscriptNcbiStatus(manuscript)
})
}),
),
......@@ -269,9 +266,11 @@ function updateManuscriptNcbiStatus(manuscript) {
ncbiState: 'sent',
},
manuscript.updatedBy,
).then(() =>
logger.info(`Created package ${manuscript.id} to ncbi FTP location.`),
)
).then(() => {
ManuscriptAccess.knex().destroy()
logger.info(`Created package ${manuscript.id} to ncbi FTP location.`)
process.exit()
})
}
async function updateManuscript(input) {
......
Markdown is supported
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