fix off by 1 error on user/topics posts #3120

This commit is contained in:
Barış Soner Uşaklı
2015-05-07 14:44:01 -04:00
parent eaa89a4da7
commit c74d32a172

View File

@@ -298,7 +298,7 @@ function getFromUserSet(tpl, set, method, type, req, res, next) {
},
data: function(next) {
var start = (page - 1) * itemsPerPage;
var stop = start + itemsPerPage;
var stop = start + itemsPerPage - 1;
method(setName, req.uid, start, stop, next);
}
}, function(err, results) {