You've already forked obsidian-visualiser
Add modifier edition, fix race selection and add mail debug data
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user