fixed a bug calling getSortedSetRangeByScoreWithScores

This commit is contained in:
psychobunny
2016-03-01 18:40:15 -05:00
parent 09e5f053f0
commit effcd20597

View File

@@ -68,7 +68,7 @@ function getIDsByCondition(condition, callback) {
}
function filterCompletedRewards(uid, rewards, callback) {
db.getSortedSetRangeByScoreWithScores('uid:' + uid + ':rewards', 0, -1, 1, Infinity, function(err, data) {
db.getSortedSetRangeByScoreWithScores('uid:' + uid + ':rewards', 0, -1, 1, '+inf', function(err, data) {
if (err) {
return callback(err);
}