2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
module TodosDestroyer
|
2020-04-08 14:13:33 +05:30
|
|
|
class GroupPrivateWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-11-18 11:00:15 +05:30
|
|
|
include ApplicationWorker
|
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
|
|
|
def perform(group_id)
|
|
|
|
::Todos::Destroy::GroupPrivateService.new(group_id).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|