-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.js
More file actions
26 lines (24 loc) · 681 Bytes
/
Copy pathtest.js
File metadata and controls
26 lines (24 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require("dotenv").config();
const nodemailer = require('nodemailer');
let transporter = nodemailer.createTransport({
service: 'gmail',
auth:{
user: process.env.EMAIL_USER,
pass: process.env.EMAIL_PASS
}
});
// console.log('sending mail')
// transporter.sendMail({
// from: process.env.EMAIL_USER,
// to: 'johnnyqu4@gmail.com',
// subject: "fuck u",
// text: 'xd'
// });
const db = require('knex')({
client: 'sqlite3',
connection: {
filename: process.env.DB_PATH
},
useNullAsDefault: true // so we can avoid sqlite specific bugs
});
db('Accounts').where('email', 'bertsunjc@gmail.com').del().then(console.log());