mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(edit-docs): stop initializing if DB is already so
This commit is contained in:
		| @@ -15,18 +15,19 @@ async function startElectron() { | ||||
|  | ||||
| async function main() { | ||||
|     await initializeTranslations(); | ||||
|     await importData(); | ||||
|     await initializeDatabase(); | ||||
|  | ||||
|     await startElectron(); | ||||
|     // await exportData(); | ||||
| } | ||||
|  | ||||
| async function importData() { | ||||
|     const sql = (await import("./src/services/sql.js")).default; | ||||
| async function initializeDatabase() { | ||||
|     const sqlInit = (await import("./src/services/sql_init.js")).default; | ||||
|  | ||||
|     cls.init(() => { | ||||
|         if (!sqlInit.isDbInitialized()) { | ||||
|             sqlInit.createInitialDatabase(); | ||||
|         } | ||||
|     }); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user