17 lines
399 B
Ruby
17 lines
399 B
Ruby
# frozen_string_literal: true
|
|
|
|
module TodosDestroyer
|
|
class PrivateFeaturesWorker # rubocop:disable Scalability/IdempotentWorker
|
|
include ApplicationWorker
|
|
|
|
data_consistency :always
|
|
|
|
sidekiq_options retry: 3
|
|
include TodosDestroyerQueue
|
|
|
|
def perform(project_id, user_id = nil)
|
|
::Todos::Destroy::UnauthorizedFeaturesService.new(project_id, user_id).execute
|
|
end
|
|
end
|
|
end
|