1
0
Fork 0

Server: fix videos pagination

This commit is contained in:
Chocobozzz 2016-07-06 19:57:47 +02:00
parent efb9afc3e8
commit 4fea95df04

View file

@ -248,7 +248,7 @@ function findWithCount (query, start, count, sort, callback) {
async.parallel([
function (asyncCallback) {
self.find(query).skip(start).limit(start + count).sort(sort).exec(asyncCallback)
self.find(query).skip(start).limit(count).sort(sort).exec(asyncCallback)
},
function (asyncCallback) {
self.count(query, asyncCallback)