lib/trifle/stats/driver/postgres.rb in trifle-stats-1.1.1 vs lib/trifle/stats/driver/postgres.rb in trifle-stats-1.1.2

- old
+ new

@@ -63,10 +63,10 @@ result = client.exec_params( "SELECT * FROM #{table_name} WHERE key = $1 LIMIT 1;", [key] ).to_a.first return nil if result.nil? - JSON.parse(result.try(:fetch, 'data')) + JSON.parse(result['data']) rescue JSON::ParserError nil end end end