Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/jobs/reports/monthly_key_metrics_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def perform(date)

def emails
emails = [IdentityConfig.store.team_agnes_email]
if Identity::Hostdata.env == 'prod' && report_date.day == 1
if report_date.day == 1
emails << IdentityConfig.store.team_all_feds_email
end
emails
Expand Down
1 change: 0 additions & 1 deletion spec/jobs/reports/monthly_key_metrics_report_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
and_return(agnes_email)
allow(IdentityConfig.store).to receive(:team_all_feds_email).
and_return(feds_email)
allow(Identity::Hostdata).to receive(:env).and_return('prod')
end

it 'sends out a report to the email listed with one total user' do
Expand Down