diff options
author | Brett Walker <brett@digitalmoksha.com> | 2017-09-13 14:47:09 +0200 |
---|---|---|
committer | Brett Walker <brett@digitalmoksha.com> | 2017-09-23 15:24:53 +0200 |
commit | b2d53791614da093a32fd7040371cf2054aa9817 (patch) | |
tree | a1ca7b4655823e70f0ba35aae3cecfa15f230590 /lib/api/users.rb | |
parent | 09726bdf446b4673d4f92bc9132a6e34f3a67160 (diff) | |
download | gitlab-ce-b2d53791614da093a32fd7040371cf2054aa9817.tar.gz |
fix calls to Emails::DestroyService
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r-- | lib/api/users.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index 8b44639dd7d..992556c838b 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -366,7 +366,7 @@ module API not_found!('Email') unless email destroy_conditionally!(email) do |email| - Emails::DestroyService.new(current_user, email: email.email).execute + Emails::DestroyService.new(current_user).execute(email) end user.update_secondary_emails! @@ -689,7 +689,7 @@ module API not_found!('Email') unless email destroy_conditionally!(email) do |email| - Emails::DestroyService.new(current_user, email: email.email).execute + Emails::DestroyService.new(current_user).execute(email) end current_user.update_secondary_emails! |