From 7f8ea1f843f1dec4fa28945ff34c29e4177d6cf9 Mon Sep 17 00:00:00 2001 From: Holly Date: Sat, 23 Apr 2022 12:11:31 +0100 Subject: [PATCH] whoops --- EUS.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EUS.js b/EUS.js index d99306e..dc24474 100644 --- a/EUS.js +++ b/EUS.js @@ -69,6 +69,7 @@ class Database { } } +let dbConnection; function init() { // Require node modules node_modules["chalk"] = require("chalk"); @@ -114,7 +115,7 @@ function init() { } // This is using a callback but that's fine, the server will just react properly to the db not being ready yet. - const dbConnection = new Database(eusConfig["database"]["databaseAddress"], eusConfig["database"]["databasePort"], eusConfig["database"]["databaseUsername"], eusConfig["database"]["databasePassword"], eusConfig["database"]["databaseName"], async () => { + dbConnection = new Database(eusConfig["database"]["databaseAddress"], eusConfig["database"]["databasePort"], eusConfig["database"]["databaseUsername"], eusConfig["database"]["databasePassword"], eusConfig["database"]["databaseName"], async () => { cacheJSON = JSON.stringify(await cacheFilesAndSpace()); cacheIsReady = true; });