From: Chocobozzz Date: Sun, 7 Feb 2016 11:02:26 +0000 (+0100) Subject: Return with a callback function X-Git-Tag: v0.0.1-alpha~1036 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4;p=oweals%2Fpeertube.git Return with a callback function --- 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) { // We need to quit our friends before make new ones res.sendStatus(409) } else { - next() + return next() } }) }