IO-3386 Cleanup To extension

Signed-off-by: Allan Carr <allan@imexsystems.ca>
This commit is contained in:
Allan Carr
2025-10-03 12:13:42 -07:00
parent 4899297539
commit 2af95de353

View File

@@ -47,11 +47,6 @@ const logEmail = async (req, email) => {
const sendServerEmail = async ({ subject, text, to = [] }) => {
if (process.env.NODE_ENV === undefined) return;
let sentTo = ["support@imexsystems.ca"];
if (to?.length) {
sentTo = [...sentTo, ...to];
}
try {
mailer.sendMail(
{
@@ -59,7 +54,7 @@ const sendServerEmail = async ({ subject, text, to = [] }) => {
imex: `ImEX Online API - ${process.env.NODE_ENV} <noreply@imex.online>`,
rome: `Rome Online API - ${process.env.NODE_ENV} <noreply@romeonline.io>`
}),
to: sentTo,
to: ["support@imexsystems.ca", ...to],
subject: subject,
text: text,
ses: {