2018-08-11 07:00:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-07-27 09:28:17 +00:00
|
|
|
module TodosDestroyer
|
2020-02-19 18:09:10 +00:00
|
|
|
class PrivateFeaturesWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-07-27 09:28:17 +00:00
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
2018-07-27 09:28:17 +00:00
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
|
|
|
def perform(project_id, user_id = nil)
|
2021-12-03 18:11:11 +00:00
|
|
|
::Todos::Destroy::UnauthorizedFeaturesService.new(project_id, user_id).execute
|
2018-07-27 09:28:17 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|