blob: 6ff361e4d8009f392f901465f14bae774aa01a09 (
plain)
1
2
3
4
5
6
7
8
9
10
|
class DeleteUserWorker
include Sidekiq::Worker
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
|