aboutsummaryrefslogtreecommitdiffhomepage
path: root/routes/api/remoteVideos.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/api/remoteVideos.js')
-rw-r--r--routes/api/remoteVideos.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/api/remoteVideos.js b/routes/api/remoteVideos.js
index eed586d23..2ae3ce5bc 100644
--- a/routes/api/remoteVideos.js
+++ b/routes/api/remoteVideos.js
@@ -8,7 +8,7 @@
8 8
9 function addRemoteVideos (req, res, next) { 9 function addRemoteVideos (req, res, next) {
10 videos.addRemote(req.body.data, function (err, video) { 10 videos.addRemote(req.body.data, function (err, video) {
11 if (err) next(err) 11 if (err) return next(err)
12 12
13 res.json(video) 13 res.json(video)
14 }) 14 })
@@ -16,7 +16,7 @@
16 16
17 function removeRemoteVideo (req, res, next) { 17 function removeRemoteVideo (req, res, next) {
18 videos.removeRemote(req.body.signature.url, req.body.data.magnetUri, function (err) { 18 videos.removeRemote(req.body.signature.url, req.body.data.magnetUri, function (err) {
19 if (err) next(err) 19 if (err) return next(err)
20 20
21 res.status(204) 21 res.status(204)
22 }) 22 })