mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	now using .tar export to initialize DB instead of direct DB dumps
This commit is contained in:
		| @@ -82,7 +82,7 @@ async function createNewNote(parentNoteId, noteData) { | ||||
|         parentNoteId: parentNoteId, | ||||
|         notePosition: newNotePos, | ||||
|         prefix: noteData.prefix, | ||||
|         isExpanded: 0 | ||||
|         isExpanded: !!noteData.isExpanded | ||||
|     }).save(); | ||||
|  | ||||
|     for (const attr of await parentNote.getAttributes()) { | ||||
| @@ -121,7 +121,8 @@ async function createNote(parentNoteId, title, content = "", extraOptions = {}) | ||||
|         isProtected: !!extraOptions.isProtected, | ||||
|         type: extraOptions.type, | ||||
|         mime: extraOptions.mime, | ||||
|         dateCreated: extraOptions.dateCreated | ||||
|         dateCreated: extraOptions.dateCreated, | ||||
|         isExpanded: extraOptions.isExpanded | ||||
|     }; | ||||
|  | ||||
|     if (extraOptions.json && !noteData.type) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user