pass data to getCategoryTopics, renamed end to stop

This commit is contained in:
barisusakli
2015-03-31 22:59:34 -04:00
parent 7a3b4c08e0
commit 27bab3330a
3 changed files with 6 additions and 13 deletions

View File

@@ -232,14 +232,14 @@ categoriesController.get = function(req, res, next) {
}
var start = (page - 1) * settings.topicsPerPage + topicIndex,
end = start + settings.topicsPerPage - 1;
stop = start + settings.topicsPerPage - 1;
next(null, {
cid: cid,
set: set,
reverse: reverse,
start: start,
end: end,
stop: stop,
uid: uid
});
},