BigW Consortium Gitlab

project_web_hook_worker.rb 239 Bytes
Newer Older
1 2 3 4 5
class ProjectWebHookWorker
  include Sidekiq::Worker

  sidekiq_options queue: :project_web_hook

6
  def perform(hook_id, data, hook_name)
7
    data = data.with_indifferent_access
8
    WebHook.find(hook_id).execute(data, hook_name)
9 10
  end
end