fix: server throw TypeError when user not sign-in

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2020-02-26 10:25:12 +08:00
parent db615e5111
commit 7870b82249
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38
1 changed files with 1 additions and 1 deletions

View File

@ -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'
})
}