From 779361e6d2eaaf626e4ba4ac618e4111a2bd86c6 Mon Sep 17 00:00:00 2001 From: 20chen-7 Date: Thu, 29 Aug 2024 10:59:45 -0600 Subject: [PATCH] chore: change subject --- src/helpers/userHelper.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/helpers/userHelper.js b/src/helpers/userHelper.js index ed9c52131..428051a0e 100644 --- a/src/helpers/userHelper.js +++ b/src/helpers/userHelper.js @@ -2038,12 +2038,12 @@ 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 = `

Management,

-

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.

+

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.

With Gratitude,

@@ -2051,12 +2051,12 @@ const userHelper = function () { recipients.push('onecommunityglobal@gmail.com'); 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 = `

Management,

-

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.

+

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.

With Gratitude,