changed sortedSetRangeByScore

This commit is contained in:
barisusakli
2014-04-10 20:59:17 -04:00
parent 74ff579412
commit 9d405812cb
6 changed files with 13 additions and 18 deletions

View File

@@ -210,7 +210,7 @@ var db = require('./database'),
var count = parseInt(stop, 10) === -1 ? stop : stop - start + 1;
db.getSortedSetRevRangeByScore(['posts:pid', '+inf', Date.now() - since, 'LIMIT', start, count], function(err, pids) {
db.getSortedSetRevRangeByScore('posts:pid', start, count, Infinity, Date.now() - since, function(err, pids) {
if(err) {
return callback(err);
}