aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-08 20:34:01 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-08 20:34:01 +0100
commit9cc99d7b569765412c9898cfd5452dba5ee5e4b4 (patch)
treec604ecdd078e6f5bea4b08ed1274904b19aa3d4d /server/models
parent99b727ec9c34863d24e23faa6fe1e49d4b359f31 (diff)
downloadPeerTube-9cc99d7b569765412c9898cfd5452dba5ee5e4b4.tar.gz
PeerTube-9cc99d7b569765412c9898cfd5452dba5ee5e4b4.tar.zst
PeerTube-9cc99d7b569765412c9898cfd5452dba5ee5e4b4.zip
Fix update host script
Diffstat (limited to 'server/models')
-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 742150d69..d0fd61eb4 100644
--- a/server/models/video.js
+++ b/server/models/video.js
@@ -414,7 +414,7 @@ function getDurationFromFile (videoPath, callback) {
414} 414}
415 415
416function list (callback) { 416function list (callback) {
417 return this.find().asCallback() 417 return this.findAll().asCallback(callback)
418} 418}
419 419
420function listForApi (start, count, sort, callback) { 420function listForApi (start, count, sort, callback) {