summaryrefslogtreecommitdiff
path: root/lib/api/notification_settings.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-09-27 11:48:33 +0200
committerJames Lopez <james@jameslopez.es>2017-09-28 08:46:39 +0200
commit67d06dee30379fc93be196e2cf509660d1661aea (patch)
treede02bb9866dcc70cc7e65f9599bc7e8392060775 /lib/api/notification_settings.rb
parentcbb90d8f84d1f79560066d8ea3c6346906e7da94 (diff)
downloadgitlab-ce-67d06dee30379fc93be196e2cf509660d1661aea.tar.gz
refactor users update service
Diffstat (limited to 'lib/api/notification_settings.rb')
-rw-r--r--lib/api/notification_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/notification_settings.rb b/lib/api/notification_settings.rb
index 1c5592d952d..0266bf2f717 100644
--- a/lib/api/notification_settings.rb
+++ b/lib/api/notification_settings.rb
@@ -35,7 +35,7 @@ module API
new_notification_email = params.delete(:notification_email)
if new_notification_email
- ::Users::UpdateService.new(current_user, current_user, notification_email: new_notification_email).execute
+ ::Users::UpdateService.new(current_user, user: current_user, notification_email: new_notification_email).execute
end
notification_setting.update(declared_params(include_missing: false))