diff options
author | ThibG <thib@sitedethib.com> | 2020-11-13 22:17:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 22:17:04 +0100 |
commit | 0a4d0e8320ae9fc5c446828743008db3b45bcb13 (patch) | |
tree | dfaaa1135f12d066d9b86dc25a18fc663f63988e | |
parent | aa10200e58ccb340b6384532ccdba6b7fbac037a (diff) |
Fix AccountDeletionWorker not accepting keyword arguments (#15152)
-rw-r--r-- | app/workers/account_deletion_worker.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/workers/account_deletion_worker.rb b/app/workers/account_deletion_worker.rb index b6016bf8c..81c3b91ad 100644 --- a/app/workers/account_deletion_worker.rb +++ b/app/workers/account_deletion_worker.rb @@ -5,7 +5,8 @@ class AccountDeletionWorker sidekiq_options queue: 'pull' - def perform(account_id, reserve_username: true) + def perform(account_id, options = {}) + reserve_username = options.with_indifferent_access.fetch(:reserve_username, true) DeleteAccountService.new.call(Account.find(account_id), reserve_username: reserve_username, reserve_email: false) rescue ActiveRecord::RecordNotFound true |