Skip to content

Commit

Permalink
Corrects will_retry method mased on API-35829 testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
stiehlrod committed Apr 26, 2024
1 parent dac1e5f commit 8560c27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/claims_api/app/sidekiq/claims_api/service_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def save_auto_claim!(auto_claim, status)
def set_evss_response(auto_claim, error)
auto_claim.evss_response = []
error_messages = get_error_message(error)
error_messages.uniq.each do |error_message|
messages = error_messages[:messages].presence || error_messages
messages.uniq.each do |error_message|
error_key = get_error_key(error_message)
error_text = get_error_text(error_message)
auto_claim.evss_response <<
Expand Down Expand Up @@ -109,7 +110,7 @@ def get_original_status_code(error)

def will_retry?(auto_claim, error)
msg = if auto_claim.evss_response.present?
auto_claim.evss_response&.dig(0, 'text')
auto_claim.evss_response&.dig(0, 'key')
elsif error.respond_to? :original_body
get_error_key(error.original_body)
else
Expand Down

0 comments on commit 8560c27

Please sign in to comment.