about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-14 17:40:46 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-14 17:40:46 -0600
commitb423ac926497367b418c31f65fec69bb3a193170 (patch)
tree1ba44da45b7f15cc8dbd888b0ed7e92373ec5a54 /app/workers
parent34b02a74b4a68f62e2a7c0cbee06edfe2aa92edd (diff)
parentdb01f8b942b72eaa2eacbb144261b002f8079c9c (diff)
Merge remote-tracking branch 'upstream/master' into merge-glitch
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/account_deletion_worker.rb3
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