diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-22 18:09:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-22 18:09:56 +0000 |
commit | 2bb1dbf21f2a684b29c63be7e2594886884cd2ac (patch) | |
tree | 3cc97c5fd10d3866ff3b5662668feddf40ab4b8e /lib/tasks/gitlab/web_hook.rake | |
parent | 640007842a876dfa551578feccfd0fe2307c522a (diff) | |
download | gitlab-ce-2bb1dbf21f2a684b29c63be7e2594886884cd2ac.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/tasks/gitlab/web_hook.rake')
-rw-r--r-- | lib/tasks/gitlab/web_hook.rake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/web_hook.rake b/lib/tasks/gitlab/web_hook.rake index 091743485c9..fc17c7d0177 100644 --- a/lib/tasks/gitlab/web_hook.rake +++ b/lib/tasks/gitlab/web_hook.rake @@ -39,7 +39,8 @@ namespace :gitlab do web_hooks.find_each do |hook| next unless hook.url == web_hook_url - result = WebHooks::DestroyService.new(nil).sync_destroy(hook) + user = hook.parent.owners.first + result = WebHooks::DestroyService.new(user).execute(hook) raise "Unable to destroy Web hook" unless result[:status] == :success |