We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86e5a1 commit bc0516dCopy full SHA for bc0516d
lib/esdb/identity.rb
@@ -4,8 +4,10 @@ def to_hash
4
get! unless @response
5
hash = JSON.parse(@response)
6
7
+ Rails.logger.info hash.inspect
8
+
9
# Only include stats for ourself.
- hash['stats'] = hash['stats'][hash['id'].to_s]
10
+ hash['stats'] = hash['stats'][hash['id'].to_s] if hash['stats']
11
hash
12
end
13
0 commit comments