aboutsummaryrefslogtreecommitdiffhomepage
path: root/middlewares/reqValidators
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-07 12:02:26 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-07 12:02:26 +0100
commit1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4 (patch)
treeea12b191a56f153898336f5356e1a2b247866ee1 /middlewares/reqValidators
parentac2f99eb75ea0295dc08e47b91f4b4d54829d004 (diff)
downloadPeerTube-1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4.tar.gz
PeerTube-1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4.tar.zst
PeerTube-1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4.zip
Return with a callback function
Diffstat (limited to 'middlewares/reqValidators')
-rw-r--r--middlewares/reqValidators/pods.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/middlewares/reqValidators/pods.js b/middlewares/reqValidators/pods.js
index 7d1612dde..ef09d51cf 100644
--- a/middlewares/reqValidators/pods.js
+++ b/middlewares/reqValidators/pods.js
@@ -20,7 +20,7 @@ function makeFriends (req, res, next) {
20 // We need to quit our friends before make new ones 20 // We need to quit our friends before make new ones
21 res.sendStatus(409) 21 res.sendStatus(409)
22 } else { 22 } else {
23 next() 23 return next()
24 } 24 }
25 }) 25 })
26} 26}