mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-21 22:19:07 -04:00
Merge code manually since some code moved to another file
This commit is contained in:
parent
29d2d95c71
commit
200fdfb808
2 changed files with 18 additions and 5 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue