mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-16 10:15:18 -06:00
Server: fix videos pagination
This commit is contained in:
parent
efb9afc3e8
commit
4fea95df04
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user