Revert some changes

This commit is contained in:
Moe Poi ~ 2021-11-15 17:35:31 +07:00
parent c15a6f3ae6
commit 5003dcd8b2
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View file

@ -37,4 +37,4 @@ Temporary Items
.apdisk .apdisk
# Config # Config
conf.js config.js

View file

@ -1,5 +1,10 @@
var mysql = require('mysql2'); var mysql = require('mysql2');
const config = require('../conf');
try {
const config = require('../config');
} catch (e) {
console.log('No config file found');
}
function connect() { function connect() {
const connection = mysql.createConnection(config.db); const connection = mysql.createConnection(config.db);