IO-2782-Send-Promanager-Welcome-Email - Update for merge conflict

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-19 13:08:23 -04:00
parent 145cf7cc93
commit 4ad87a522c

View File

@@ -110,7 +110,7 @@ const sendProManagerWelcomeEmail = async (to, subject, html) => {
}
};
const sendTaskEmail = async ({ to, subject, text, attachments }) => {
const sendTaskEmail = async ({ to, subject, type = "text", html, text, attachments }) => {
try {
transporter.sendMail(
{
@@ -121,7 +121,7 @@ const sendTaskEmail = async ({ to, subject, text, attachments }) => {
}),
to: to,
subject: subject,
text: text,
...(type === "text" ? { text } : { html }),
attachments: attachments || null
},
(err, info) => {