-
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 #1094 from OneCommunityGlobal/Ivy-update-deactivat…
…e-email-template Ivy-hotfix-email-template
- Loading branch information
Showing
1 changed file
with
8 additions
and
8 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 |
---|---|---|
|
@@ -2044,7 +2044,7 @@ const userHelper = function () { | |
const emailBody = `<p>Management, </p> | ||
<p>Please note that ${firstName} ${lastName} has been PAUSED in the Highest Good Network as of ${moment(endDate).format('M-D-YYYY')}.</p> | ||
<p>Please confirm all your work with this individual has been wrapped up and nothing further is needed on their part until they return on ${moment(reactivationDate).format('M-D-YYYY')}. </p> | ||
<p>For a smooth transition, Please confirm all your work with this individual has been wrapped up and nothing further is needed on their part until they return on ${moment(reactivationDate).format('M-D-YYYY')}. </p> | ||
<p>With Gratitude, </p> | ||
|
@@ -2055,22 +2055,22 @@ const userHelper = function () { | |
} else 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 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 the final day for ${firstName} ${lastName} has been set in the Highest Good Network as of ${moment(endDate).format('M-D-YYYY')}.</p> | ||
<p>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 (endDate && !isSet) { | ||
} else { | ||
const subject = `IMPORTANT: ${firstName} ${lastName} has been deactivated 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 ${firstName} ${lastName} has been made inactive in the Highest Good Network as of ${moment(endDate).format('M-D-YYYY')}.</p> | ||
<p>For a smooth transition, 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> | ||
|