11 lines
266 B
Ruby
11 lines
266 B
Ruby
module TodosDestroyer
|
|
class EntityLeaveWorker
|
|
include ApplicationWorker
|
|
include TodosDestroyerQueue
|
|
|
|
def perform(user_id, entity_id, entity_type)
|
|
::Todos::Destroy::EntityLeaveService.new(user_id, entity_id, entity_type).execute
|
|
end
|
|
end
|
|
end
|