summaryrefslogtreecommitdiff
path: root/app/models/spam_log.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-06-02 14:18:24 +0100
committerNick Thomas <nick@gitlab.com>2017-06-05 13:08:06 +0100
commit158581a447bb4976161eca26ddcb2fccd25888ab (patch)
tree37c8ba0b0c21059246f351acb318e4f848606297 /app/models/spam_log.rb
parentc34107608ecc5c36e80a748eb4c9b88d2b1157cf (diff)
downloadgitlab-ce-158581a447bb4976161eca26ddcb2fccd25888ab.tar.gz
Refactor the DeleteUserWorker
Diffstat (limited to 'app/models/spam_log.rb')
-rw-r--r--app/models/spam_log.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/spam_log.rb b/app/models/spam_log.rb
index dd21ee15c6c..56a115d1db4 100644
--- a/app/models/spam_log.rb
+++ b/app/models/spam_log.rb
@@ -4,8 +4,7 @@ class SpamLog < ActiveRecord::Base
validates :user, presence: true
def remove_user(deleted_by:)
- user.block
- DeleteUserWorker.perform_async(deleted_by.id, user.id, delete_solo_owned_groups: true, hard_delete: true)
+ user.delete_async(deleted_by: deleted_by, params: { hard_delete: true })
end
def text