Skip to content

Commit

Permalink
Fix breaking changes with new busboy version
Browse files Browse the repository at this point in the history
- No more constructor

See: mscdex/busboy#266
  • Loading branch information
ostec-marten committed Jul 27, 2022
1 parent a1b59f8 commit dca3140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = function (req, dest, fnDestFilename, opts = {}) {
let files = []
let fields = {}

let busboy = new Busboy(Object.assign({}, opts, {headers: req.headers}))
let busboy = Busboy(Object.assign({}, opts, {headers: req.headers}))
busboy.on('file', (fieldname, fileStream, info) => {
const { filename, encoding, mimeType } = info;
if (!filename) return fileStream.resume()
Expand Down

0 comments on commit dca3140

Please sign in to comment.