Return with a callback function
authorChocobozzz <florian.bigard@gmail.com>
Sun, 7 Feb 2016 11:02:26 +0000 (12:02 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Sun, 7 Feb 2016 11:02:26 +0000 (12:02 +0100)
middlewares/reqValidators/pods.js

index 7d1612ddefc9b8aae1fdd34b12d30fd124f1c259..ef09d51cf84e2a4d119803c1662544e9100cdd68 100644 (file)
@@ -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()
     }
   })
 }