Skip to content

Commit

Permalink
Include email address in all weekly reports (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
allthesignals authored Nov 5, 2024
1 parent 3c7edd9 commit 4527f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/app/mailers/weekly_report_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def weekly_report_data(current_site, report_range)
invited_at: invitation.created_at,
transmitted_at: cbv_flow&.transmitted_at,
completed_at: cbv_flow&.consented_to_authorized_use_at,
snap_application_date: invitation.snap_application_date
snap_application_date: invitation.snap_application_date,
email_address: invitation.email_address
}

case current_site.id
Expand Down
3 changes: 3 additions & 0 deletions app/spec/mailers/weekly_report_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"invited_at" => "2024-09-04 13:00:00 UTC",
"snap_application_date" => "2024-09-03",
"completed_at" => "2024-09-04 13:30:00 UTC",
"email_address" => "[email protected]"
)
expect(parsed_csv.length).to eq(1)
end
Expand Down Expand Up @@ -111,6 +112,7 @@
"invited_at" => "2024-09-04 13:00:00 UTC",
"snap_application_date" => match(/\d\d\d\d-\d\d-\d\d/),
"completed_at" => nil,
"email_address" => "[email protected]"
))
end
end
Expand All @@ -129,6 +131,7 @@
"invited_at" => "2024-09-04 13:00:00 UTC",
"snap_application_date" => "2024-09-03",
"completed_at" => "2024-09-04 13:30:00 UTC",
"email_address" => "[email protected]"
)
expect(parsed_csv.length).to eq(1)
end
Expand Down

0 comments on commit 4527f6f

Please sign in to comment.