mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-22 20:51:23 +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({
|
client.getUserById({
|
||||||
id: session.user
|
id: session.user
|
||||||
}, (error, response, body) => {
|
}, (error, response, body) => {
|
||||||
if (error) {
|
if (error || response.statusCode !== 200) {
|
||||||
winston.error(error);
|
winston.error(error);
|
||||||
return next(error)
|
return next(error)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue