mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
11 lines
239 B
Ruby
11 lines
239 B
Ruby
class ProjectWebHookWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options queue: :project_web_hook
|
|
|
|
def perform(hook_id, data, hook_name)
|
|
data = data.with_indifferent_access
|
|
WebHook.find(hook_id).execute(data, hook_name)
|
|
end
|
|
end
|