Permalink
Browse files

dbCmds -> cmds

  • Loading branch information...
tj committed Aug 21, 2012
1 parent d8b3ae1 commit 92cb2c6ef64a908a505cd7fe24c9505bfff529f1
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/reds.js
View
@@ -281,12 +281,12 @@ Search.prototype.index = function(str, id, fn){
, map = exports.metaphoneMap(words)
, keys = Object.keys(map);
- var dbCmds = [];
+ var cmds = [];
keys.forEach(function(word, i){
- dbCmds.push(['zadd', key + ':word:' + map[word], counts[word], id]);
- dbCmds.push(['zadd', key + ':object:' + id, counts[word], map[word]]);
+ cmds.push(['zadd', key + ':word:' + map[word], counts[word], id]);
+ cmds.push(['zadd', key + ':object:' + id, counts[word], map[word]]);
});
- db.multi(dbCmds).exec(fn || noop);
+ db.multi(cmds).exec(fn || noop);
return this;
};

0 comments on commit 92cb2c6

Please sign in to comment.