Skip to content

Commit

Permalink
Merge branch '2.2' of github.com:mongodb/node-mongodb-native into 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed May 22, 2017
2 parents 504d401 + 613cd12 commit 7e16fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ var insertDocuments = function(self, docs, options, callback) {
// Add _id if not specified
if(forceServerObjectId !== true){
for(var i = 0; i < docs.length; i++) {
if(docs[i]._id == null) docs[i]._id = self.s.pkFactory.createPk();
if(docs[i]._id === void 0) docs[i]._id = self.s.pkFactory.createPk();
}
}

Expand Down

0 comments on commit 7e16fc7

Please sign in to comment.