From 6f27411c52741769c67305f6fb35df71ae611415 Mon Sep 17 00:00:00 2001 From: Eric Tillberg Date: Thu, 24 Oct 2024 13:56:01 -0400 Subject: [PATCH] Make 26-4555 no longer need an ICN to go to the SAHSHA API --- .../controllers/simple_forms_api/v1/uploads_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/simple_forms_api/app/controllers/simple_forms_api/v1/uploads_controller.rb b/modules/simple_forms_api/app/controllers/simple_forms_api/v1/uploads_controller.rb index ba16931016e..f8c68cea126 100644 --- a/modules/simple_forms_api/app/controllers/simple_forms_api/v1/uploads_controller.rb +++ b/modules/simple_forms_api/app/controllers/simple_forms_api/v1/uploads_controller.rb @@ -34,7 +34,7 @@ def submit response = if intent_service.use_intent_api? handle_210966_authenticated - elsif form_is264555_and_should_use_lgy_api + elsif params[:form_number] == '26-4555' handle264555 else submit_form_to_benefits_intake @@ -213,10 +213,6 @@ def perform_pdf_upload(location, file_path, metadata, form) lighthouse_service.perform_upload(**upload_params) end - def form_is264555_and_should_use_lgy_api - params[:form_number] == '26-4555' && icn - end - def icn @current_user&.icn end