mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
Fixed passing request completion handler
We were passing this as the second argument to pipe - ups!
This commit is contained in:
parent
791a1b54b5
commit
d40a44b9a0
@ -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
|
||||
});
|
||||
});
|
||||
}));
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user