diff --git a/server/models/video.js b/server/models/video.js index 1c06e477c..8054caa77 100644 --- a/server/models/video.js +++ b/server/models/video.js @@ -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)