closes #2289, replace Infinity with '+inf'

This commit is contained in:
barisusakli
2014-11-07 19:40:41 -05:00
parent dcba272dc5
commit c56b9aafff
6 changed files with 8 additions and 8 deletions

View File

@@ -66,10 +66,10 @@ module.exports = function(Topics) {
user.getIgnoredCategories(uid, next);
},
recentTids: function(next) {
db.getSortedSetRevRangeByScoreWithScores('topics:recent', 0, -1, Infinity, yesterday, next);
db.getSortedSetRevRangeByScoreWithScores('topics:recent', 0, -1, '+inf', yesterday, next);
},
userScores: function(next) {
db.getSortedSetRevRangeByScoreWithScores('uid:' + uid + ':tids_read', 0, -1, Infinity, yesterday, next);
db.getSortedSetRevRangeByScoreWithScores('uid:' + uid + ':tids_read', 0, -1, '+inf', yesterday, next);
}
}, function(err, results) {
if (err) {