From 31e4084c345e1dcd68d8b18c6cfb5b23dc9c6b95 Mon Sep 17 00:00:00 2001 From: aurora-a-k-a-lightning Date: Tue, 17 Dec 2024 14:46:19 -0800 Subject: [PATCH] dbex/97932-claims-api: set claims api only --- .../v0/disability_compensation_forms_controller.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/controllers/v0/disability_compensation_forms_controller.rb b/app/controllers/v0/disability_compensation_forms_controller.rb index 05715282ffb..a5243f5fead 100644 --- a/app/controllers/v0/disability_compensation_forms_controller.rb +++ b/app/controllers/v0/disability_compensation_forms_controller.rb @@ -122,7 +122,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) @@ -161,11 +161,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")