mongoose-fill icon indicating copy to clipboard operation
mongoose-fill copied to clipboard

throws and error with mongoose 4.13.7

Open reduxdj opened this issue 7 years ago • 1 comments

var multipleProps = __fill.fill.props.length > 1 //args.unshift(doc) args.push(function(err, val){ // if val is not passed, just leave it if (arguments.length > 1 && val !== doc){ if (prop){ doc.set(prop, multipleProps ? val[prop] : val) } else { props.forEach(function(prop){ doc.set(prop, val[prop]) }) }

reduxdj avatar Dec 16 '17 04:12 reduxdj

If you can identify the problem please send a PR.

wclr avatar Dec 16 '17 09:12 wclr