From fe945c6a70745078c725a2c9a26fa55fbfbc332d Mon Sep 17 00:00:00 2001 From: moepoi Date: Mon, 15 Nov 2021 17:56:20 +0700 Subject: [PATCH] Fix config --- modules/db.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/db.js b/modules/db.js index a5e9483..2df463c 100644 --- a/modules/db.js +++ b/modules/db.js @@ -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() {