diff options
Diffstat (limited to 'lib/api/users.rb')
-rw-r--r-- | lib/api/users.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/users.rb b/lib/api/users.rb index e18a16f384a..48e13127712 100644 --- a/lib/api/users.rb +++ b/lib/api/users.rb @@ -1227,7 +1227,7 @@ module API attrs = declared_params(include_missing: false) - service = ::Users::UpsertCreditCardValidationService.new(attrs, user).execute + service = ::Users::UpsertCreditCardValidationService.new(attrs).execute if service.success? present user.credit_card_validation, with: Entities::UserCreditCardValidations @@ -1243,7 +1243,8 @@ module API params do optional :view_diffs_file_by_file, type: Boolean, desc: 'Flag indicating the user sees only one file diff per page' optional :show_whitespace_in_diffs, type: Boolean, desc: 'Flag indicating the user sees whitespace changes in diffs' - at_least_one_of :view_diffs_file_by_file, :show_whitespace_in_diffs + optional :pass_user_identities_to_ci_jwt, type: Boolean, desc: 'Flag indicating the user passes their external identities as CI information' + at_least_one_of :view_diffs_file_by_file, :show_whitespace_in_diffs, :pass_user_identities_to_ci_jwt end put "preferences", feature_category: :user_profile, urgency: :high do authenticate! |