summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-04-27 16:29:31 +0300
committerValery Sizov <vsv2711@gmail.com>2015-04-27 16:29:31 +0300
commitbc9ba5237cafd4b24405596f0c9e8af099635c29 (patch)
tree82ded5d3c0cbc39a9bfd0430684757d7309c9a88 /app/services
parentbb8c1cadf39415d2f916d135e8bbfdce49842f2f (diff)
downloadgitlab-ce-bc9ba5237cafd4b24405596f0c9e8af099635c29.tar.gz
Revert "Added X-GitLab-Event header for web hooks"
This reverts commit 548f182814acd0f7a110e6c165c186e345901b00.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/system_hooks_service.rb6
-rw-r--r--app/services/test_hook_service.rb2
2 files changed, 4 insertions, 4 deletions
diff --git a/app/services/system_hooks_service.rb b/app/services/system_hooks_service.rb
index 60235b6be2a..c5d0b08845b 100644
--- a/app/services/system_hooks_service.rb
+++ b/app/services/system_hooks_service.rb
@@ -7,12 +7,12 @@ class SystemHooksService
def execute_hooks(data)
SystemHook.all.each do |sh|
- async_execute_hook(sh, data, 'system_hooks')
+ async_execute_hook sh, data
end
end
- def async_execute_hook(hook, data, hook_name)
- Sidekiq::Client.enqueue(SystemHookWorker, hook.id, data, hook_name)
+ def async_execute_hook(hook, data)
+ Sidekiq::Client.enqueue(SystemHookWorker, hook.id, data)
end
def build_event_data(model, event)
diff --git a/app/services/test_hook_service.rb b/app/services/test_hook_service.rb
index e85e58751e7..21ec2c01cb8 100644
--- a/app/services/test_hook_service.rb
+++ b/app/services/test_hook_service.rb
@@ -1,6 +1,6 @@
class TestHookService
def execute(hook, current_user)
data = Gitlab::PushDataBuilder.build_sample(hook.project, current_user)
- hook.execute(data, 'push_hooks')
+ hook.execute(data)
end
end