Skip to content

Commit

Permalink
dbex/97932-claims-api: set claims api only (#19938)
Browse files Browse the repository at this point in the history
  • Loading branch information
aurora-a-k-a-lightning authored Dec 18, 2024
1 parent bf6ef60 commit d870a13
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def create_submission(saved_claim)
saved_claim_id: saved_claim.id,
auth_headers_json: auth_headers.to_json,
form_json: saved_claim.to_submission_data(@current_user),
submit_endpoint: includes_toxic_exposure? ? 'claims_api' : 'evss'
submit_endpoint: 'claims_api'
) { |sub| sub.add_birls_ids @current_user.birls_id }

if missing_disabilities?(submission)
Expand Down Expand Up @@ -162,11 +162,6 @@ def stats_key
'api.disability_compensation'
end

def includes_toxic_exposure?
# any form that has a startedFormVersion (whether it is '2019' or '2022') will go through the Toxic Exposure flow
form_content['form526']['startedFormVersion']
end

def missing_disabilities?(submission)
if submission.form['form526']['form526']['disabilities'].none?
StatsD.increment("#{stats_key}.failure")
Expand Down

0 comments on commit d870a13

Please sign in to comment.