mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 11:36:21 +00:00
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) => {
|
exports.getMe = async (req, res) => {
|
||||||
if (!req.isAuthenticated()) {
|
if (!req.isAuthenticated()) {
|
||||||
res.status(401).send({
|
return res.status(401).send({
|
||||||
status: 'forbidden'
|
status: 'forbidden'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user