Improved error handling.
This commit is contained in:
parent
e2b510313a
commit
ee5e084b63
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ EventMachine.run {
|
||||||
if data['action'] == 'login'
|
if data['action'] == 'login'
|
||||||
|
|
||||||
# get user_id
|
# get user_id
|
||||||
if data['session_id']
|
if data && data['session_id']
|
||||||
session = ActiveRecord::SessionStore::Session.find_by( session_id: data['session_id'] )
|
session = ActiveRecord::SessionStore::Session.find_by( session_id: data['session_id'] )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue