Skip to content

Commit

Permalink
Handle missing events. #257
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 13, 2019
1 parent 912142d commit 3a86fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/types/event_data_edge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EventDataEdge < GraphQL::Relay::Edge

def event_data
@event_data ||= begin
Event.query(nil, subj_id: self.node[:id], obj_id: self.parent[:id])[:data].first
Event.query(nil, subj_id: self.node[:id], obj_id: self.parent[:id])[:data].first.to_h
end
end

Expand Down

0 comments on commit 3a86fb2

Please sign in to comment.