From c6f4a07ba0afa1d2ba147fc2ec7242890c9509f2 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Fri, 11 Jan 2013 19:19:44 -0500 Subject: [PATCH] fix awful typo in chained update --- mongo_hacker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo_hacker.js b/mongo_hacker.js index d72a276..bf643f6 100644 --- a/mongo_hacker.js +++ b/mongo_hacker.js @@ -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 {