Permalink
Browse files

Merge pull request #18 from qmee/PhraseMatch

Fix redis call to allow for multiple keywords
  • Loading branch information...
2 parents b7b50b1 + a7c753d commit 81ea21231c3e4f6af4b3309e2642707c61b4675c @tj 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 81ea212

Please sign in to comment.