diff options
author | James Lopez <james@jameslopez.es> | 2017-06-16 11:12:06 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-06-23 11:41:42 +0200 |
commit | 158550cf37cc2db9590f0212962f10ecc73082de (patch) | |
tree | 3b48192a0eda2b96cf7de3c3f705a60346e18026 /lib/api/internal.rb | |
parent | bf3a3f3652704fb261e6220e2199830ea22ec8d3 (diff) | |
download | gitlab-ce-158550cf37cc2db9590f0212962f10ecc73082de.tar.gz |
added service in the rest of controllers and classes
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r-- | lib/api/internal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb index 479ee16a611..8606ff75e11 100644 --- a/lib/api/internal.rb +++ b/lib/api/internal.rb @@ -133,7 +133,7 @@ module API end codes = user.generate_otp_backup_codes! - user.save! + ::Users::UpdateService.new(user, user).execute! { success: true, recovery_codes: codes } end |