From 1bfd1a920f2df891ecd50e3a7ae8dca3bc8746b4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 7 Feb 2016 12:02:26 +0100 Subject: Return with a callback function --- middlewares/reqValidators/pods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'middlewares/reqValidators') 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() } }) } -- cgit v1.2.3