Add modifier edition, fix race selection and add mail debug data

This commit is contained in:
Clément Pons
2025-04-22 15:45:10 +02:00
parent 3c412d1cbe
commit b8f547d3e9
9 changed files with 54 additions and 26 deletions

View File

@@ -41,6 +41,19 @@ const transport = nodemailer.createTransport({
},
});
if(process.env.NODE_ENV === 'production')
{
transport.verify((error) => {
if(error)
{
console.log('Mail server cannot be reached');
console.error(error);
}
else
console.log("Mail server is reachable and ready to communicate");
});
}
export default async function(e: TaskEvent) {
try {
if(e.payload.type !== 'mail')
@@ -82,6 +95,7 @@ export default async function(e: TaskEvent) {
}
catch(e)
{
console.error(e);
return { result: false, error: e };
}
}