Skip to content

Commit

Permalink
Merge pull request #1094 from OneCommunityGlobal/Ivy-update-deactivat…
Browse files Browse the repository at this point in the history
…e-email-template

Ivy-hotfix-email-template
  • Loading branch information
one-community authored Sep 12, 2024
2 parents e339666 + 55c67e3 commit d43239c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/helpers/userHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit d43239c

Please sign in to comment.