mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
fix: missing default vars in multerStorage
This commit is contained in:
parent
db254c602b
commit
dd6f225461
@ -26,7 +26,7 @@ DiskStorage.prototype._handleFile = function _handleFile (req, file, cb) {
|
||||
let tempError = null
|
||||
let tempObject = {}
|
||||
let tempWeight = 0
|
||||
const _cb = (err, result, weight = 1) => {
|
||||
const _cb = (err = null, result = {}, weight = 1) => {
|
||||
tempError = err
|
||||
tempWeight += weight
|
||||
tempObject = Object.assign(result, tempObject)
|
||||
|
Loading…
Reference in New Issue
Block a user