mirror of https://github.com/status-im/codimd.git
fix: server throw TypeError when user not sign-in
Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
parent
db615e5111
commit
7870b82249
|
@ -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'
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue