Server: fix videos pagination
This commit is contained in:
parent
efb9afc3e8
commit
4fea95df04
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ function findWithCount (query, start, count, sort, callback) {
|
||||||
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
function (asyncCallback) {
|
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) {
|
function (asyncCallback) {
|
||||||
self.count(query, asyncCallback)
|
self.count(query, asyncCallback)
|
||||||
|
|
Loading…
Reference in a new issue