update eslint config + other changes

This commit is contained in:
2023-07-11 15:40:39 +02:00
parent d763448a12
commit d0647ba1bb
5 changed files with 28 additions and 7 deletions

View File

@@ -10,9 +10,10 @@
const mailer = require( 'nodemailer' );
const html2text = require( 'html-to-text' );
// import jsondb.js file and let it import mail config
const db = require( '../db/db.js' );
let transporter = mailer.createTransport( db.getJSONDataSync( 'mail.secret.json' ) );
var transporter = mailer.createTransport( );
class MailManager {
constructor () {
@@ -26,7 +27,7 @@ class MailManager {
*/
sendMail ( recipient, html, subject, sender ) {
let text = html2text.convert( html, this.options );
var mailOptions = {
let mailOptions = {
from: sender,
to: recipient,
subject: subject,
@@ -43,7 +44,7 @@ class MailManager {
sendMailWithAttachment ( recipient, html, subject, attachments, from ) {
let text = html2text.convert( html, this.options );
var mailOptions = {
let mailOptions = {
from: from,
to: recipient,
subject: subject,