debian-mirror-gitlab/app/workers/delete_user_worker.rb

12 lines
330 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
class DeleteUserWorker
include Sidekiq::Worker
2016-11-03 12:29:30 +05:30
include DedicatedSidekiqQueue
2016-06-02 11:05:42 +05:30
def perform(current_user_id, delete_user_id, options = {})
delete_user = User.find(delete_user_id)
current_user = User.find(current_user_id)
DeleteUserService.new(current_user).execute(delete_user, options.symbolize_keys)
end
end