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

@@ -75,7 +75,7 @@ module.exports = function(Categories) {
async.parallel({
pinnedTids: function(next) {
db.getSortedSetRevRangeByScore('cid:' + category.cid + ':tids', 0, -1, Infinity, Date.now(), next);
db.getSortedSetRevRangeByScore('cid:' + category.cid + ':tids', 0, -1, '+inf', Date.now(), next);
},
tids: function(next) {
db.getSortedSetRevRangeByScore('cid:' + category.cid + ':tids', 0, Math.max(0, count), Date.now(), 0, next);