-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4913fd3
commit ca38a6b
Showing
2 changed files
with
2 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ const { EMAIL_RECIPIENTS } = require('../models/constants') | |
const { sendEmail } = require('../service/sendEmail') | ||
const { getUserByUID } = require('../service/users.service') | ||
|
||
const FINANCE_GROUP_EMAIL = '[email protected]' | ||
const DivisionEmails = { | ||
software: '[email protected]', | ||
mechanical: '[email protected]', | ||
|
@@ -15,13 +16,7 @@ const currencyFormatter = new Intl.NumberFormat('en-CA', { | |
}) | ||
|
||
const getEmailToSection = async (reporter_id, recipients) => { | ||
const emailToSet = new Set( | ||
process.env.WATO_FINANCE_EMAIL_RECIPIENTS?.split(',') || [ | ||
'[email protected]', | ||
'[email protected]', | ||
'[email protected]', | ||
] | ||
) | ||
const emailToSet = new Set([FINANCE_GROUP_EMAIL]) | ||
|
||
if (recipients.includes(EMAIL_RECIPIENTS.admin)) { | ||
// TODO: use ADMIN_IDENTIFIERS (rename to ADMIN_EMAILS) after migrating to new onboarding data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters