Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/web_hooks/destroy_worker.rb')
-rw-r--r--app/workers/web_hooks/destroy_worker.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/app/workers/web_hooks/destroy_worker.rb b/app/workers/web_hooks/destroy_worker.rb
deleted file mode 100644
index 8f9b194f88a..00000000000
--- a/app/workers/web_hooks/destroy_worker.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# frozen_string_literal: true
-
-module WebHooks
- class DestroyWorker
- include ApplicationWorker
-
- DestroyError = Class.new(StandardError)
-
- data_consistency :always
- sidekiq_options retry: 3
- feature_category :integrations
- urgency :high
-
- idempotent!
-
- def perform(user_id, web_hook_id)
- user = User.find_by_id(user_id)
- hook = WebHook.find_by_id(web_hook_id)
-
- return unless user && hook
-
- result = ::WebHooks::DestroyService.new(user).sync_destroy(hook)
-
- result.track_and_raise_exception(as: DestroyError, web_hook_id: hook.id)
- end
- end
-end