renamed end to stop globally

fixed getting favourites for admins
This commit is contained in:
barisusakli
2015-03-31 23:40:58 -04:00
parent 27bab3330a
commit 878e548296
26 changed files with 160 additions and 166 deletions

View File

@@ -6,8 +6,8 @@ var async = require('async'),
module.exports = function(Posts) {
Posts.getPostsByTid = function(tid, set, start, end, uid, reverse, callback) {
Posts.getPidsFromSet(set, start, end, reverse, function(err, pids) {
Posts.getPostsByTid = function(tid, set, start, stop, uid, reverse, callback) {
Posts.getPidsFromSet(set, start, stop, reverse, function(err, pids) {
if (err) {
return callback(err);
}