Skip to content

Commit

Permalink
correcting zip code and submission typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tblackwe committed Apr 25, 2024
1 parent 46beb88 commit ef7dd53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/sidekiq/central_mail/submit_form4142_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def generate_metadata
metadata = {
'veteranFirstName' => vet_name[:first],
'veteranLastName' => vet_name[:last],
'zipCode' => determine_zip,
'zipCode' => submission.form.dig('form526', 'form526', 'veteran', 'currentMailingAddress', 'zipFirstFive'),
'source' => "Form526Submission va.gov",
'docType' => '4142',
'businessLine' => '',
Expand All @@ -156,8 +156,8 @@ def generate_metadata

def usa_based?
country = (
subission.form.dig('form526', 'form526', 'veteran', 'currentMailingAddress', 'country') ||
subission.form.dig('form526', 'form526', 'veteran', 'mailingAddress', 'country')
submission.form.dig('form526', 'form526', 'veteran', 'currentMailingAddress', 'country') ||
submission.form.dig('form526', 'form526', 'veteran', 'mailingAddress', 'country')
)
raise VeteranCountryNotDefined if country.blank?

Expand Down

0 comments on commit ef7dd53

Please sign in to comment.