Merge code manually since some code moved to another file

This commit is contained in:
Louis Lam 2022-04-19 16:46:45 +08:00
parent 29d2d95c71
commit 200fdfb808
2 changed files with 18 additions and 5 deletions

View file

@ -1541,6 +1541,11 @@ async function afterLogin(socket, user) {
}
}
/**
* Connect to the database and patch it if necessary.
*
* Generated by Trelent
*/
async function initDatabase(testMode = false) {
if (! fs.existsSync(Database.path)) {
log.info("server", "Copying Database");