Permalink
Browse files

Updated fix issue with passing options

  • Loading branch information...
jimib committed Mar 18, 2013
1 parent 9bad117 commit b8571f2a49154bfa8b6e04fa3c0e4884979472ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adapters/mongodb.js
View
@@ -116,7 +116,7 @@ MongoDB.prototype.create = function (model, data, callback) {
};
MongoDB.prototype.updateAll = function (model, query, update, callback) {
- this.collection(model).update(query, update, false, true, function (err, m) {
+ this.collection(model).update(query, update, {multi:true, upsert:false, safe:true}, function (err, m) {
callback(err);
});
};

0 comments on commit b8571f2

Please sign in to comment.