Fixed passing request completion handler

We were passing this as the second argument to pipe - ups!
This commit is contained in:
Fabien O'Carroll 2019-03-13 15:24:37 +01:00
parent 791a1b54b5
commit d40a44b9a0

View File

@ -108,7 +108,7 @@ module.exports.uploadZip = (options = {}) => {
return new Promise((resolve, reject) => {
fs.createReadStream(options.zipPath)
.pipe(request.post(reqOptions), (err, res) => {
.pipe(request.post(reqOptions, (err, res) => {
if (err) {
return reject(err);
}
@ -116,7 +116,7 @@ module.exports.uploadZip = (options = {}) => {
resolve({
downloadUrl: res.body.browser_download_url
});
});
}));
});
};