aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-05-11 21:19:34 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-05-13 14:23:11 +0200
commitbc503c2a62dcf9aed6b8d90b68f0f27a7755ac01 (patch)
treea1fe1ad88afd29ee4d7cb05c480649d5a9c6f9a0 /server/models/videos.js
parent881a5e68b64e4acd43408852bbdc914643d8fac6 (diff)
downloadPeerTube-bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01.tar.gz
PeerTube-bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01.tar.zst
PeerTube-bc503c2a62dcf9aed6b8d90b68f0f27a7755ac01.zip
Update to standard 7. Goodbye snake_case, I used to love you
Diffstat (limited to 'server/models/videos.js')
-rw-r--r--server/models/videos.js8
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
79function list (callback) { 79function 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
106function listOwned (callback) { 106function 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