Class: Users::DeleteAccountWorker

Inherits:
ApplicationWorker show all
Defined in:
app/workers/users/delete_account_worker.rb

Instance Method Summary collapse

Methods inherited from ApplicationWorker

unlimited_retry

Instance Method Details

#perform(user_id, reason) ⇒ Object



3
4
5
6
7
8
9
# File 'app/workers/users/delete_account_worker.rb', line 3

def perform(user_id, reason)
  user = User.find_by id: user_id
  return if user.blank?

  service = UserService::Delete.new(user_id, reason)
  service.
end