summaryrefslogtreecommitdiff
path: root/lib/api/users.rb
diff options
context:
space:
mode:
authorSam Rose <sam@gitlab.com>2017-04-06 21:02:25 -0400
committerSam Rose <sam@gitlab.com>2017-04-06 21:02:25 -0400
commitbb23534b37f0eff6075dbc1a3337009c9f19c327 (patch)
treec9f465801b7c907ab1160b3d0378e1087bf3507f /lib/api/users.rb
parentb47d8a333c9aa554f6b820c6da101b67d85015c8 (diff)
parent3900aa803e574ddbcdb1a899f0e6085a0bb6c457 (diff)
downloadgitlab-ce-mr-shortcuts-counter.tar.gz
Update branch with latest stable commitsmr-shortcuts-counter
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r--lib/api/users.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb
index 549003f576a..a309be9d0fa 100644
--- a/lib/api/users.rb
+++ b/lib/api/users.rb
@@ -312,7 +312,7 @@ module API
user = User.find_by(id: params[:id])
not_found!('User') unless user
- ::Users::DestroyService.new(current_user).execute(user)
+ DeleteUserWorker.perform_async(current_user.id, user.id)
end
desc 'Block a user. Available only for admins.'