diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-16 22:31:45 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-16 22:31:45 +0200 |
commit | 5c39adb7313e0696aabb4b71196ab7b0b378c359 (patch) | |
tree | ac44b67890509338b984f8cbf11660dc77cdd0fd /server/models/video.js | |
parent | 089ff2f2046fdbaf9531726eea1f8c6726ebf0c0 (diff) | |
download | PeerTube-5c39adb7313e0696aabb4b71196ab7b0b378c359.tar.gz PeerTube-5c39adb7313e0696aabb4b71196ab7b0b378c359.tar.zst PeerTube-5c39adb7313e0696aabb4b71196ab7b0b378c359.zip |
Server: add user list sort/pagination
Diffstat (limited to 'server/models/video.js')
-rw-r--r-- | server/models/video.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video.js b/server/models/video.js index a5540d127..63afc2efe 100644 --- a/server/models/video.js +++ b/server/models/video.js | |||
@@ -197,7 +197,7 @@ function getDurationFromFile (videoPath, callback) { | |||
197 | 197 | ||
198 | function listForApi (start, count, sort, callback) { | 198 | function listForApi (start, count, sort, callback) { |
199 | const query = {} | 199 | const query = {} |
200 | return modelUtils.findWithCount.call(this, query, start, count, sort, callback) | 200 | return modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback) |
201 | } | 201 | } |
202 | 202 | ||
203 | function listByUrlAndMagnet (fromUrl, magnetUri, callback) { | 203 | function listByUrlAndMagnet (fromUrl, magnetUri, callback) { |
@@ -234,7 +234,7 @@ function search (value, field, start, count, sort, callback) { | |||
234 | query[field] = new RegExp(value) | 234 | query[field] = new RegExp(value) |
235 | } | 235 | } |
236 | 236 | ||
237 | modelUtils.findWithCount.call(this, query, start, count, sort, callback) | 237 | modelUtils.listForApiWithCount.call(this, query, start, count, sort, callback) |
238 | } | 238 | } |
239 | 239 | ||
240 | function seedAllExisting (callback) { | 240 | function seedAllExisting (callback) { |