-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1088 from OneCommunityGlobal/Ivy-hotfix-isSet-be
Ivy-hotfix-change subject-finalDay
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 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 |
---|---|---|
|
@@ -2038,25 +2038,25 @@ const userHelper = function () { | |
recipients, | ||
isSet, | ||
) { | ||
if (endDate && !isSet) { | ||
const subject = `IMPORTANT: ${firstName} ${lastName} has been deactivated in the Highest Good Network`; | ||
if (endDate && isSet) { | ||
const subject = `IMPORTANT: The last day for ${firstName} ${lastName} has been set in the Highest Good Network`; | ||
const emailBody = `<p>Management, </p> | ||
<p>Please note that ${firstName} ${lastName} has been made inactive in the Highest Good Network as of ${endDate}. | ||
Please confirm all your work with this individual has been wrapped up and nothing further is needed on their part. </p> | ||
<p>Please note that the final day for ${firstName} ${lastName} has been set in the Highest Good Network ${endDate}. | ||
For a smooth transition, please confirm all your work is being wrapped up with this individual and nothing further will be needed on their part after this date. </p> | ||
<p>With Gratitude, </p> | ||
<p>One Community</p>`; | ||
recipients.push('[email protected]'); | ||
recipients = recipients.toString(); | ||
emailSender(recipients, subject, emailBody, null, null, email); | ||
} else if (isSet) { | ||
} else if (endDate && !isSet) { | ||
const subject = `IMPORTANT: ${firstName} ${lastName} has been deactivated in the Highest Good Network`; | ||
const emailBody = `<p>Management, </p> | ||
<p>Please note that the final day for ${firstName} ${lastName} has been set in the Highest Good Network ${endDate}. | ||
For a smooth transition, please confirm all your work is being wrapped up with this individual and nothing further will be needed on their part after this date. </p> | ||
<p>Please note that ${firstName} ${lastName} has been made inactive in the Highest Good Network as of ${endDate}. | ||
Please confirm all your work with this individual has been wrapped up and nothing further is needed on their part. </p> | ||
<p>With Gratitude, </p> | ||
|