diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-04-27 16:29:31 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-04-27 16:29:31 +0300 |
commit | bc9ba5237cafd4b24405596f0c9e8af099635c29 (patch) | |
tree | 82ded5d3c0cbc39a9bfd0430684757d7309c9a88 /app/workers | |
parent | bb8c1cadf39415d2f916d135e8bbfdce49842f2f (diff) | |
download | gitlab-ce-bc9ba5237cafd4b24405596f0c9e8af099635c29.tar.gz |
Revert "Added X-GitLab-Event header for web hooks"
This reverts commit 548f182814acd0f7a110e6c165c186e345901b00.
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/project_web_hook_worker.rb | 4 | ||||
-rw-r--r-- | app/workers/system_hook_worker.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/workers/project_web_hook_worker.rb b/app/workers/project_web_hook_worker.rb index fb878965288..73085c046bd 100644 --- a/app/workers/project_web_hook_worker.rb +++ b/app/workers/project_web_hook_worker.rb @@ -3,8 +3,8 @@ class ProjectWebHookWorker sidekiq_options queue: :project_web_hook - def perform(hook_id, data, hook_name) + def perform(hook_id, data) data = data.with_indifferent_access - WebHook.find(hook_id).execute(data, hook_name) + WebHook.find(hook_id).execute(data) end end diff --git a/app/workers/system_hook_worker.rb b/app/workers/system_hook_worker.rb index a122c274763..3ebc62b7e7a 100644 --- a/app/workers/system_hook_worker.rb +++ b/app/workers/system_hook_worker.rb @@ -3,7 +3,7 @@ class SystemHookWorker sidekiq_options queue: :system_hook - def perform(hook_id, data, hook_name) - SystemHook.find(hook_id).execute(data, hook_name) + def perform(hook_id, data) + SystemHook.find(hook_id).execute data end end |