Skip to content

Commit

Permalink
Update Received email va-notify template with date_received (#19560)
Browse files Browse the repository at this point in the history
* dbex/96487-add-date-received-to-template: add date_received as Time.now to Received Email

* dbex/96487-add-date-received-to-template: rubocop'd it
  • Loading branch information
sethdarragile6 authored Nov 22, 2024
1 parent de63364 commit c4846e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/form526_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ def personalization_parameters(first_name)
'email' => form['form526']['form526']['veteran']['emailAddress'],
'submitted_claim_id' => submitted_claim_id,
'date_submitted' => created_at.strftime('%B %-d, %Y %-l:%M %P %Z').sub(/([ap])m/, '\1.m.'),
'date_received' => Time.now.utc.strftime('%B %-d, %Y %-l:%M %P %Z').sub(/([ap])m/, '\1.m.'),
'first_name' => first_name
}
end
Expand Down
1 change: 1 addition & 0 deletions app/sidekiq/form526_confirmation_email_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def perform(personalization_parameters)
personalisation: {
'claim_id' => personalization_parameters['submitted_claim_id'],
'date_submitted' => personalization_parameters['date_submitted'],
'date_received' => personalization_parameters['date_received'],
'first_name' => personalization_parameters['first_name']
}
)
Expand Down
2 changes: 2 additions & 0 deletions spec/sidekiq/form526_confirmation_email_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'email' => email_address,
'submitted_claim_id' => '600191990',
'date_submitted' => 'July 12, 2020',
'date_received' => 'July 15, 2020',
'first_name' => 'firstname'
}
end
Expand Down Expand Up @@ -64,6 +65,7 @@
personalisation: {
'claim_id' => '600191990',
'date_submitted' => 'July 12, 2020',
'date_received' => 'July 15, 2020',
'first_name' => 'firstname'
}
}
Expand Down

0 comments on commit c4846e5

Please sign in to comment.