0dacf3c169
* Changed name of delete_user_service and worker to destroy * Move and change delete_group_service to Groups::DestroyService * Rename Notes::DeleteService to Notes::DestroyService
11 lines
334 B
Ruby
11 lines
334 B
Ruby
class DeleteUserWorker
|
|
include Sidekiq::Worker
|
|
include DedicatedSidekiqQueue
|
|
|
|
def perform(current_user_id, delete_user_id, options = {})
|
|
delete_user = User.find(delete_user_id)
|
|
current_user = User.find(current_user_id)
|
|
|
|
Users::DestroyService.new(current_user).execute(delete_user, options.symbolize_keys)
|
|
end
|
|
end
|