Skip to content

Commit

Permalink
fix awful typo in chained update
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Jan 12, 2013
1 parent 25845f2 commit c6f4a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo_hacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ DB.prototype.rename = function(newName) {

DBQuery.prototype._checkMulti = function(){
if(this._limit > 0){
var cursor = this.clone().select({_id: 1}).map(function(o){return o._id;});
var ids = this.clone().select({_id: 1}).map(function(o){return o._id;});
this._query['_id'] = {'$in': ids};
return true;
} else {
Expand Down

0 comments on commit c6f4a07

Please sign in to comment.