Fix bug where accounts.js tries to create admin account before database is initialized
parent
238a22e597
commit
d2d6bbc514
|
@ -27,7 +27,7 @@ async function checkForAdminAccount() {
|
|||
console.log("Created temp admin account 'admin@example.com' with password 'admin'.");
|
||||
}
|
||||
}
|
||||
checkForAdminAccount();
|
||||
database.initializationStatus.then(() => checkForAdminAccount());
|
||||
|
||||
|
||||
passport.use(new localStrategy({
|
||||
|
|
|
@ -36,10 +36,11 @@ async function checkForDatabaseInitialization() {
|
|||
await Initialize();
|
||||
}
|
||||
}
|
||||
checkForDatabaseInitialization();
|
||||
const initializationStatus = checkForDatabaseInitialization();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
exports.executeQuery = executeQuery;
|
||||
exports.initializationStatus = initializationStatus;
|
Reference in New Issue