Skip to content

Commit

Permalink
Merge pull request #380 from strongloop/feature/fix-write-concern
Browse files Browse the repository at this point in the history
Remove the hard-coded writeConcern
  • Loading branch information
raymondfeng authored Jun 28, 2017
2 parents 6d9e28c + 242f560 commit 466f4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
coverage
2 changes: 1 addition & 1 deletion lib/mongodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ MongoDB.prototype.save = function(model, data, options, callback) {

data = self.toDatabase(model, data);

this.execute(model, 'save', data, { w: 1 }, function(err, result) {
this.execute(model, 'save', data, {}, function(err, result) {
if (!err) {
self.setIdValue(model, data, idValue);
idName !== '_id' && delete data._id;
Expand Down

0 comments on commit 466f4b5

Please sign in to comment.