diff options
Diffstat (limited to 'server/controllers/api/v1/pods.js')
-rw-r--r-- | server/controllers/api/v1/pods.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js index d08b7860d..b16fea4f6 100644 --- a/server/controllers/api/v1/pods.js +++ b/server/controllers/api/v1/pods.js | |||
@@ -44,23 +44,23 @@ function addPods (req, res, next) { | |||
44 | return next(err) | 44 | return next(err) |
45 | } | 45 | } |
46 | 46 | ||
47 | Videos.listOwned(function (err, videos_list) { | 47 | Videos.listOwned(function (err, videosList) { |
48 | if (err) { | 48 | if (err) { |
49 | logger.error('Cannot get the list of owned videos.') | 49 | logger.error('Cannot get the list of owned videos.') |
50 | return next(err) | 50 | return next(err) |
51 | } | 51 | } |
52 | 52 | ||
53 | res.json({ cert: cert, videos: videos_list }) | 53 | res.json({ cert: cert, videos: videosList }) |
54 | }) | 54 | }) |
55 | }) | 55 | }) |
56 | }) | 56 | }) |
57 | } | 57 | } |
58 | 58 | ||
59 | function listPods (req, res, next) { | 59 | function listPods (req, res, next) { |
60 | Pods.list(function (err, pods_list) { | 60 | Pods.list(function (err, podsList) { |
61 | if (err) return next(err) | 61 | if (err) return next(err) |
62 | 62 | ||
63 | res.json(pods_list) | 63 | res.json(podsList) |
64 | }) | 64 | }) |
65 | } | 65 | } |
66 | 66 | ||
@@ -77,13 +77,13 @@ function removePods (req, res, next) { | |||
77 | Pods.remove(url, function (err) { | 77 | Pods.remove(url, function (err) { |
78 | if (err) return next(err) | 78 | if (err) return next(err) |
79 | 79 | ||
80 | Videos.listFromUrl(url, function (err, videos_list) { | 80 | Videos.listFromUrl(url, function (err, videosList) { |
81 | if (err) { | 81 | if (err) { |
82 | logger.error('Cannot list videos from url.', { error: err }) | 82 | logger.error('Cannot list videos from url.', { error: err }) |
83 | next(err) | 83 | next(err) |
84 | } | 84 | } |
85 | 85 | ||
86 | videos.removeRemoteVideos(videos_list, function (err) { | 86 | videos.removeRemoteVideos(videosList, function (err) { |
87 | if (err) { | 87 | if (err) { |
88 | logger.error('Cannot remove remote videos.', { error: err }) | 88 | logger.error('Cannot remove remote videos.', { error: err }) |
89 | next(err) | 89 | next(err) |