2013-01-24 15:15:24 -05:00
|
|
|
class ProjectWebHookWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
|
|
|
sidekiq_options queue: :project_web_hook
|
|
|
|
|
2015-01-23 19:10:43 -05:00
|
|
|
def perform(hook_id, data, hook_name)
|
2014-12-29 10:48:43 -05:00
|
|
|
data = data.with_indifferent_access
|
2015-01-23 19:10:43 -05:00
|
|
|
WebHook.find(hook_id).execute(data, hook_name)
|
2013-01-24 15:15:24 -05:00
|
|
|
end
|
|
|
|
end
|