mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 12:41:11 +00:00
Deny auth on failed requests
This commit is contained in:
parent
b31ca31c2b
commit
e8de9f2498
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ module.exports = io => {
|
|||
client.getUserById({
|
||||
id: session.user
|
||||
}, (error, response, body) => {
|
||||
if (error) {
|
||||
if (error || response.statusCode !== 200) {
|
||||
winston.error(error);
|
||||
return next(error)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue