mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	yet another refactoring of working with note's payload/content
This commit is contained in:
		| @@ -78,7 +78,6 @@ async function createInitialDatabase(username, password) { | ||||
|         await sql.executeScript(schema); | ||||
|  | ||||
|         const Note = require("../entities/note"); | ||||
|         const NoteContent = require("../entities/note_content"); | ||||
|         const Branch = require("../entities/branch"); | ||||
|  | ||||
|         const rootNote = await new Note({ | ||||
| @@ -88,10 +87,7 @@ async function createInitialDatabase(username, password) { | ||||
|             mime: 'text/html' | ||||
|         }).save(); | ||||
|  | ||||
|         const rootNoteContent = await new NoteContent({ | ||||
|             noteId: rootNote.noteId, | ||||
|             content: '' | ||||
|         }).save(); | ||||
|         await rootNote.setContent(''); | ||||
|  | ||||
|         await new Branch({ | ||||
|             branchId: 'root', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user