blob: b1d07203ca1e8b606c82601e001f7e6e41d52c40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
module Mutations
module IncidentManagement
module TimelineEventTag
class Base < BaseMutation
field :timeline_event_tag,
::Types::IncidentManagement::TimelineEventTagType,
null: true,
description: 'Timeline event tag.'
authorize :admin_incident_management_timeline_event_tag
private
def response(result)
{
timeline_event_tag: result.payload[:timeline_event_tag],
errors: result.errors
}
end
end
end
end
end
|