diff options
author | James Lopez <james@jameslopez.es> | 2017-09-20 11:00:06 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-09-28 08:46:39 +0200 |
commit | 9621dd0c9d31508bdac2e2e226537302b560ef10 (patch) | |
tree | f4e76be89a6cb1a85b04e87cdf33bb408f2bf63f /lib/api/notification_settings.rb | |
parent | 11c8b8bc3c2294ef2e3a33196619f6e61f1e8d82 (diff) | |
download | gitlab-ce-9621dd0c9d31508bdac2e2e226537302b560ef10.tar.gz |
refactor services to match EE signature
Diffstat (limited to 'lib/api/notification_settings.rb')
-rw-r--r-- | lib/api/notification_settings.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/notification_settings.rb b/lib/api/notification_settings.rb index bcc0833aa5c..1c5592d952d 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, notification_email: new_notification_email).execute + ::Users::UpdateService.new(current_user, current_user, notification_email: new_notification_email).execute end notification_setting.update(declared_params(include_missing: false)) |