Commit bda42b03 authored by CompileNix's avatar CompileNix

fix nullreference at mailoptions after first email send

parent 3c29c9c4
......@@ -36,10 +36,8 @@ function sendMail(subject, message) {
mailOptions.text = message;
transporter.sendMail(mailOptions, (error, info) => {
mailOptions = {
subject: `${config.subjectPrefix} - `,
text: ''
};
mailOptions.subject = `${config.subjectPrefix} - `;
mailOptions.text = ``;
if (error) {
console.log(error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment