nextStart changes, fixed move topic notification text

This commit is contained in:
barisusakli
2014-10-02 17:46:39 -04:00
parent 5ba88b7152
commit 6aa53b8323
8 changed files with 49 additions and 58 deletions

View File

@@ -45,16 +45,10 @@ module.exports = function(Topics) {
return callback(null, unreadTopics);
}
db.sortedSetRevRank('topics:recent', topicData[topicData.length - 1].tid, function(err, rank) {
if (err) {
return callback(err);
}
unreadTopics.topics = topicData;
unreadTopics.nextStart = stop + 1;
unreadTopics.topics = topicData;
unreadTopics.nextStart = parseInt(rank, 10) + 1;
callback(null, unreadTopics);
});
callback(null, unreadTopics);
});
});
};