removed WITHSCORES from getLatestTopics, how was this working at all?

This commit is contained in:
Baris Soner Usakli
2013-10-01 14:17:24 -04:00
parent 22c73f3c12
commit 1c32acf7b6

View File

@@ -20,7 +20,8 @@ schema = require('./schema.js'),
Topics.getTopicData = function(tid, callback) {
RDB.hgetall('topic:' + tid, function(err, data) {
if (err === null) {
data.title = validator.sanitize(data.title).escape();
if(data)
data.title = validator.sanitize(data.title).escape();
callback(data);
} else {
@@ -97,7 +98,7 @@ schema = require('./schema.js'),
var timestamp = Date.now();
var args = ['topics:recent', '+inf', timestamp - 86400000, 'WITHSCORES', 'LIMIT', start, end - start + 1];
var args = ['topics:recent', '+inf', timestamp - 86400000, 'LIMIT', start, end - start + 1];
RDB.zrevrangebyscore(args, function(err, tids) {