Server: fix videos pagination

pull/10/head
Chocobozzz 2016-07-06 19:57:47 +02:00
parent efb9afc3e8
commit 4fea95df04
1 changed files with 1 additions and 1 deletions

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)