diff options
Diffstat (limited to 'app/services/projects/operations/update_service.rb')
-rw-r--r-- | app/services/projects/operations/update_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/operations/update_service.rb b/app/services/projects/operations/update_service.rb index b2166dc84c7..d0bef9da329 100644 --- a/app/services/projects/operations/update_service.rb +++ b/app/services/projects/operations/update_service.rb @@ -93,7 +93,7 @@ module Projects sentry_project_id: settings.dig(:project, :sentry_project_id) } } - params[:error_tracking_setting_attributes][:token] = settings[:token] unless /\A\*+\z/.match?(settings[:token]) # Don't update token if we receive masked value + params[:error_tracking_setting_attributes][:token] = settings[:token] unless ::ErrorTracking::SentryClient::Token.masked_token?(settings[:token]) # Don't update token if we receive masked value params[:error_tracking_setting_attributes][:integrated] = settings[:integrated] unless settings[:integrated].nil? params |