Make Irker service use the supported events check
This commit is contained in:
parent
63178a9509
commit
6ddd45948f
|
@ -63,9 +63,15 @@ class IrkerService < Service
|
||||||
'irker'
|
'irker'
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute(push_data)
|
def supported_events
|
||||||
|
%w(push)
|
||||||
|
end
|
||||||
|
|
||||||
|
def execute(data)
|
||||||
|
return unless supported_events.include?(data[:object_kind])
|
||||||
|
|
||||||
IrkerWorker.perform_async(project_id, channels,
|
IrkerWorker.perform_async(project_id, channels,
|
||||||
colorize_messages, push_data, @settings)
|
colorize_messages, data, @settings)
|
||||||
end
|
end
|
||||||
|
|
||||||
def fields
|
def fields
|
||||||
|
|
Loading…
Reference in New Issue