mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
make sure to wait for DB connection to be up before starting ...
This commit is contained in:
@@ -30,6 +30,8 @@ function onClosed() {
|
||||
}
|
||||
|
||||
async function createMainWindow() {
|
||||
await sqlInit.dbConnection;
|
||||
|
||||
// if schema doesn't exist -> setup process
|
||||
// if schema exists, then we need to wait until the migration process is finished
|
||||
if (await sqlInit.schemaExists()) {
|
||||
|
||||
Reference in New Issue
Block a user