mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	reorder database initialization so that all critical sections are in the same transaction, #1985
This commit is contained in:
		| @@ -27,10 +27,10 @@ function initSyncedOptions(username, password) { | ||||
|     passwordEncryptionService.setDataKey(password, utils.randomSecureToken(16), true); | ||||
| } | ||||
|  | ||||
| function initNotSyncedOptions(initialized, startNotePath = 'root', opts = {}) { | ||||
| function initNotSyncedOptions(initialized, opts = {}) { | ||||
|     optionService.createOption('openTabs', JSON.stringify([ | ||||
|         { | ||||
|             notePath: startNotePath, | ||||
|             notePath: 'root', | ||||
|             active: true | ||||
|         } | ||||
|     ]), false); | ||||
| @@ -98,7 +98,7 @@ function initStartupOptions() { | ||||
|         if (!(name in optionsMap)) { | ||||
|             optionService.createOption(name, value, isSynced); | ||||
|  | ||||
|             log.info(`Created missing option "${name}" with default value "${value}"`); | ||||
|             log.info(`Created option "${name}" with default value "${value}"`); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user