This commit is contained in:
Julian Lam
2013-11-22 11:42:42 -05:00
parent a7216caa3b
commit 08ef67e824
9 changed files with 124 additions and 46 deletions

View File

@@ -807,8 +807,12 @@ module.exports.init = function(io) {
var start = data.after,
end = start + 9;
topics.getLatestTopics(uid, start, end, data.term, function(latestTopics) {
callback(latestTopics);
topics.getLatestTopics(uid, start, end, data.term, function(err, latestTopics) {
if (!err) {
callback(latestTopics);
} else {
winston.error('[socket api:topics.loadMoreRecentTopics] ' + err.message);
}
});
});