Return with a callback function

This commit is contained in:
Chocobozzz 2016-02-07 12:02:26 +01:00
parent ac2f99eb75
commit 1bfd1a920f
1 changed files with 1 additions and 1 deletions

View 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()
}
})
}