2018-08-11 07:00:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-07-16 18:30:17 +00:00
|
|
|
module TodosDestroyer
|
2020-02-19 18:09:10 +00:00
|
|
|
class EntityLeaveWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-07-16 18:30:17 +00:00
|
|
|
include ApplicationWorker
|
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
2020-06-12 12:08:56 +00:00
|
|
|
loggable_arguments 2
|
|
|
|
|
2018-07-16 18:30:17 +00:00
|
|
|
def perform(user_id, entity_id, entity_type)
|
|
|
|
::Todos::Destroy::EntityLeaveService.new(user_id, entity_id, entity_type).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|