blob: 07b7b308163b10d2af176621741a66534b0c29cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
module Subscriptions
module Notes
class Created < Base
payload_type ::Types::Notes::NoteType
def update(*args)
case object
when ResourceEvent
object.work_item_synthetic_system_note
when Array
object.first.work_item_synthetic_system_note(events: object)
else
object
end
end
end
end
end
|