From fd45aa6bd197f1f088149d4d916d7ad6fbad84cc Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Mon, 8 Apr 2024 20:36:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Update=20path=20to=20config=20fi?= =?UTF-8?q?le?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/config-validator.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/config-validator.js b/services/config-validator.js index d7377679..eeb58a3b 100644 --- a/services/config-validator.js +++ b/services/config-validator.js @@ -98,12 +98,14 @@ const printFileReadError = (e) => { } }; +let config = {}; + try { // Try to open and parse the YAML file - config = yaml.load(fs.readFileSync('./public/conf.yml', 'utf8')); + config = yaml.load(fs.readFileSync('./user-data/conf.yml', 'utf8')); validate(config); } catch (e) { // Something went very wrong... setIsValidVariable(false); logToConsole(bigError()); printFileReadError(e); } -module.exports = config; \ No newline at end of file +module.exports = config;