mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
cleanup of app.js, wwww
This commit is contained in:
@@ -99,8 +99,8 @@ async function createInitialDatabase() {
|
||||
await zipImportService.importZip(dummyTaskContext, demoFile, rootNote);
|
||||
|
||||
sql.transactional(() => {
|
||||
// this needs to happen after ZIP import
|
||||
// previous solution was to move option initialization here but then the important parts of initialization
|
||||
// this needs to happen after ZIP import,
|
||||
// the previous solution was to move option initialization here, but then the important parts of initialization
|
||||
// are not all in one transaction (because ZIP import is async and thus not transactional)
|
||||
|
||||
const startNoteId = sql.getValue("SELECT noteId FROM branches WHERE parentNoteId = 'root' AND isDeleted = 0 ORDER BY notePosition");
|
||||
|
||||
Reference in New Issue
Block a user