From d0a456c35a9e687266f3065bf923cede512214ac Mon Sep 17 00:00:00 2001 From: Vytor Calixto <vytorcalixto@gmail.com> Date: Fri, 22 Sep 2017 11:29:16 -0300 Subject: [PATCH] Add missing next --- src/libs/routes/user.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/routes/user.js b/src/libs/routes/user.js index f22f356a..bd08a50f 100644 --- a/src/libs/routes/user.js +++ b/src/libs/routes/user.js @@ -92,6 +92,7 @@ userApp.get('/me', passport.authenticate('bearer', { session: false }), (req, re delete user.hashedPassword; delete user.salt; req.result = user; + next(); }, response('user')); userApp.get('/:id', (req, res, next) => { -- GitLab