diff --git a/config/socketio.js b/config/socketio.js index 878d0fd..9b55ed2 100644 --- a/config/socketio.js +++ b/config/socketio.js @@ -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) };