mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-21 22:06:26 +01:00
Fix config
This commit is contained in:
parent
a0e0e6a667
commit
fe945c6a70
1 changed files with 3 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
|||
var mysql = require('mysql2');
|
||||
|
||||
let config;
|
||||
try {
|
||||
const config = require('../config');
|
||||
config = require('../config');
|
||||
} catch (e) {
|
||||
console.log('No config file found');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
function connect() {
|
||||
|
|
Loading…
Reference in a new issue