Skip to content

Commit

Permalink
Merge pull request #5172 from tzellman/master
Browse files Browse the repository at this point in the history
Fix the bulkWrite::updateMany case
  • Loading branch information
vkarpov15 committed Apr 22, 2017
2 parents a2addca + dbda564 commit 159ac94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/model.js
Expand Up @@ -2126,7 +2126,7 @@ Model.bulkWrite = function(ops, options, callback) {
try {
op['updateMany']['filter'] = cast(_this.schema,
op['updateMany']['filter']);
op['updateMany']['update'] = castUpdate(_this.schema, op['updateMany']['filter'], {
op['updateMany']['update'] = castUpdate(_this.schema, op['updateMany']['update'], {
strict: _this.schema.options.strict,
overwrite: false
});
Expand Down

0 comments on commit 159ac94

Please sign in to comment.