Skip to content

Commit

Permalink
Update busboy sample to use on('close')
Browse files Browse the repository at this point in the history
Per this update, busboy should use on('close') rather than on('finish').
mscdex/busboy#266
  • Loading branch information
Aaron Gabriel Neyer committed Sep 22, 2022
1 parent d938821 commit 56ea954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/http/index.js
Expand Up @@ -163,7 +163,7 @@ exports.uploadFile = (req, res) => {
file.on('end', () => {
writeStream.end();
});
writeStream.on('finish', resolve);
writeStream.on('close', resolve);
writeStream.on('error', reject);
});
fileWrites.push(promise);
Expand Down

0 comments on commit 56ea954

Please sign in to comment.