Permalink
Browse files

Fix redis call to allow for multiple keywords

  • Loading branch information...
1 parent b7b50b1 commit a7c753d2c638fb5109bb5049f507b23918b7bdc1 Jonathan committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/reds.js
View
@@ -241,7 +241,7 @@ Query.prototype.end = function(fn){
if (!keys.length) return fn(null, []);
var tkey = key + 'tmpkey';
db.multi([
- [type, tkey, keys.length, keys],
+ [type, tkey, keys.length].concat(keys),
['zrevrange', tkey, 0, -1],
['zremrangebyrank', tkey, 0, -1],
]).exec(function(err, ids) {

0 comments on commit a7c753d

Please sign in to comment.