Commit 0d94161b authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

FTP promise bug (hopefully)

parent b1d527db
Pipeline #12801 passed with stages
in 1 minute and 32 seconds
......@@ -100,11 +100,11 @@ function sendXML(contents, filename) {
stream,
`/${config.get('ncbi-ftp')['send-folder']}/${filename}`,
err => {
ftp.end()
ftp = null
if (err) {
reject(err)
}
ftp.end()
ftp = null
resolve(true)
},
)
......
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