Commit 6ddd4594 authored by Stan Hu's avatar Stan Hu

Make Irker service use the supported events check

parent 63178a95
...@@ -63,9 +63,15 @@ class IrkerService < Service ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment