Fix bug
This commit is contained in:
@@ -36,6 +36,7 @@ const authentication = {
|
||||
req.user_id = decoded._id
|
||||
return next()
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
return res401(res, 'unauthorized')
|
||||
}
|
||||
},
|
||||
@@ -72,6 +73,7 @@ const authentication = {
|
||||
req.user_id = decoded._id
|
||||
return next()
|
||||
} catch (err) {
|
||||
|
||||
return res401(res, 'unauthorized')
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user