summaryrefslogtreecommitdiff
path: root/app/workers/todos_destroyer/confidential_issue_worker.rb
blob: 91a8777fe9b93ebfd1ed54a6a32992e8f73a500f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module TodosDestroyer
  class ConfidentialIssueWorker # rubocop:disable Scalability/IdempotentWorker
    include ApplicationWorker

    data_consistency :always

    sidekiq_options retry: 3
    include TodosDestroyerQueue

    def perform(issue_id = nil, project_id = nil)
      ::Todos::Destroy::ConfidentialIssueService.new(issue_id: issue_id, project_id: project_id).execute
    end
  end
end