diff --git a/lib/user/index.js b/lib/user/index.js index 74649463..36c1cd62 100644 --- a/lib/user/index.js +++ b/lib/user/index.js @@ -11,7 +11,7 @@ const { generateAvatar } = require('../letter-avatars') exports.getMe = async (req, res) => { if (!req.isAuthenticated()) { - res.status(401).send({ + return res.status(401).send({ status: 'forbidden' }) }