aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video.js')
-rw-r--r--server/models/video.js2
1 files changed, 1 insertions, 1 deletions
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) {
248 248
249 async.parallel([ 249 async.parallel([
250 function (asyncCallback) { 250 function (asyncCallback) {
251 self.find(query).skip(start).limit(start + count).sort(sort).exec(asyncCallback) 251 self.find(query).skip(start).limit(count).sort(sort).exec(asyncCallback)
252 }, 252 },
253 function (asyncCallback) { 253 function (asyncCallback) {
254 self.count(query, asyncCallback) 254 self.count(query, asyncCallback)