mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue