From ad954405e855dab3cb3f588037850f6d4f7ed663 Mon Sep 17 00:00:00 2001 From: s-caso <94458706+s-caso@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:51:05 -0400 Subject: [PATCH] correct params strcuture for form submission (#16247) * correct params strcuture for form submission * update form params to be correct values --- modules/meb_api/lib/dgi/forms/service/submission_service.rb | 4 ++-- modules/meb_api/lib/dgi/submission/service.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/meb_api/lib/dgi/forms/service/submission_service.rb b/modules/meb_api/lib/dgi/forms/service/submission_service.rb index 0f369b477b3..8adae906f53 100644 --- a/modules/meb_api/lib/dgi/forms/service/submission_service.rb +++ b/modules/meb_api/lib/dgi/forms/service/submission_service.rb @@ -53,9 +53,9 @@ def update_dd_params(params, dd_params) params[:form][:direct_deposit][:direct_deposit_account_number] = dd_params[:dposit_acnt_nbr] params[:form][:direct_deposit][:direct_deposit_routing_number] = dd_params[:routng_trnsit_nbr] elsif check_masking && Flipper.enabled?(:toe_light_house_dgi_direct_deposit, @current_user) - params[:form][:direct_deposit][:account_number] = + params[:form][:direct_deposit][:direct_deposit_account_number] = dd_params&.payment_account ? dd_params.payment_account[:account_number] : nil - params[:form][:direct_deposit][:routing_number] = + params[:form][:direct_deposit][:direct_deposit_routing_number] = dd_params&.payment_account ? dd_params.payment_account[:routing_number] : nil end params diff --git a/modules/meb_api/lib/dgi/submission/service.rb b/modules/meb_api/lib/dgi/submission/service.rb index 26c001c5a22..85b91d8482c 100644 --- a/modules/meb_api/lib/dgi/submission/service.rb +++ b/modules/meb_api/lib/dgi/submission/service.rb @@ -54,9 +54,9 @@ def update_dd_params(params, dd_params) check_masking = account_number&.include?('*') if check_masking && Flipper.enabled?(:show_dgi_direct_deposit_1990EZ, @current_user) - params[:direct_deposit][:account_number] = + params[:direct_deposit][:direct_deposit_account_number] = dd_params&.payment_account ? dd_params.payment_account[:account_number] : nil - params[:direct_deposit][:routing_number] = + params[:direct_deposit][:direct_deposit_routing_number] = dd_params&.payment_account ? dd_params.payment_account[:routing_number] : nil end