diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-02-25 11:20:28 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-03-15 23:09:25 +0300 |
commit | b221d11a25218d3c2ad5304be91c849e1872be6c (patch) | |
tree | 41e52e9bf8367dd79f078ce22245ef98554d3829 /app/workers | |
parent | 4bcc0977500af7af070296e2faf817eed10aafb9 (diff) |
Add ability to delete a user with force
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/delete_user_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/delete_user_worker.rb b/app/workers/delete_user_worker.rb index bcbb6d58b4f..6ff361e4d80 100644 --- a/app/workers/delete_user_worker.rb +++ b/app/workers/delete_user_worker.rb @@ -1,10 +1,10 @@ class DeleteUserWorker include Sidekiq::Worker - def perform(current_user_id, delete_user_id) + def perform(current_user_id, delete_user_id, options = {}) delete_user = User.find(delete_user_id) current_user = User.find(current_user_id) - DeleteUserService.new(current_user).execute(delete_user) + DeleteUserService.new(current_user).execute(delete_user, options.symbolize_keys) end end |