whoops
This commit is contained in:
parent
58aa2f6b47
commit
7f8ea1f843
1 changed files with 2 additions and 1 deletions
3
EUS.js
3
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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue