2018-08-11 07:00:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-08-02 14:16:58 +00:00
|
|
|
module TodosDestroyer
|
2020-02-19 18:09:10 +00:00
|
|
|
class GroupPrivateWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-08-02 14:16:58 +00:00
|
|
|
include ApplicationWorker
|
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
|
|
|
def perform(group_id)
|
|
|
|
::Todos::Destroy::GroupPrivateService.new(group_id).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|