diff options
Diffstat (limited to 'server/models/videos.js')
-rw-r--r-- | server/models/videos.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/models/videos.js b/server/models/videos.js index eedb6eb58..eaea35b7f 100644 --- a/server/models/videos.js +++ b/server/models/videos.js | |||
@@ -77,13 +77,13 @@ function get (id, callback) { | |||
77 | } | 77 | } |
78 | 78 | ||
79 | function list (callback) { | 79 | function list (callback) { |
80 | VideosDB.find(function (err, videos_list) { | 80 | VideosDB.find(function (err, videosList) { |
81 | if (err) { | 81 | if (err) { |
82 | logger.error('Cannot get the list of the videos.') | 82 | logger.error('Cannot get the list of the videos.') |
83 | return callback(err) | 83 | return callback(err) |
84 | } | 84 | } |
85 | 85 | ||
86 | return callback(null, videos_list) | 86 | return callback(null, videosList) |
87 | }) | 87 | }) |
88 | } | 88 | } |
89 | 89 | ||
@@ -105,13 +105,13 @@ function listFromRemotes (callback) { | |||
105 | 105 | ||
106 | function listOwned (callback) { | 106 | function listOwned (callback) { |
107 | // If namePath is not null this is *our* video | 107 | // If namePath is not null this is *our* video |
108 | VideosDB.find({ namePath: { $ne: null } }, function (err, videos_list) { | 108 | VideosDB.find({ namePath: { $ne: null } }, function (err, videosList) { |
109 | if (err) { | 109 | if (err) { |
110 | logger.error('Cannot get the list of owned videos.') | 110 | logger.error('Cannot get the list of owned videos.') |
111 | return callback(err) | 111 | return callback(err) |
112 | } | 112 | } |
113 | 113 | ||
114 | return callback(null, videos_list) | 114 | return callback(null, videosList) |
115 | }) | 115 | }) |
116 | } | 116 | } |
117 | 117 | ||