Skip to content
Merged
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
14 changes: 5 additions & 9 deletions src/helpers/userHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const reportHelper = require('./reporthelper')();
// eslint-disable-next-line no-promise-executor-return
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

const COMPANY_EMAILS = ['onecommunityglobal@gmail.com', 'jae@onecommunityglobal.org']; // DO NOT REMOVE - USED IN WEEKLY SUMMARY EMAILS AND BLUE SQUARE CRON

const userHelper = function () {
// Update format to "MMM-DD-YY" from "YYYY-MMM-DD" (Confirmed with Jae)
const earnedDateBadge = () => {
Expand Down Expand Up @@ -441,7 +443,7 @@ const userHelper = function () {
emailBody,
null,
null,
emailString,
COMPANY_EMAILS,
);
} catch (err) {
logger.logException(err);
Expand Down Expand Up @@ -868,7 +870,7 @@ const userHelper = function () {
'New Infringement Assigned',
emailBody,
null,
['onecommunityglobal@gmail.com', 'jae@onecommunityglobal.org'],
COMPANY_EMAILS,
status.email,
[...new Set([...emailsBCCs])],
);
Expand Down Expand Up @@ -1926,14 +1928,8 @@ const userHelper = function () {
administrativeContent,
),
null,
['onecommunityglobal@gmail.com', 'jae@onecommunityglobal.org'],
emailAddress,
// Don't change this is to CC!
[...new Set([...bccEmails])],
null,
['onecommunityglobal@gmail.com', 'jae@onecommunityglobal.org'],
COMPANY_EMAILS,
emailAddress,
// Don't change this is to CC!
[...new Set([...bccEmails])],
);
});
Expand Down
Loading