mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	* refactoring of repository layer to represent booleans as true/false instead of 1/0
* show list of inherited attributes, fixes #136 * properly work with inheritance
This commit is contained in:
		| @@ -192,7 +192,7 @@ async function saveNoteRevision(note) { | ||||
|             content: note.content, | ||||
|             type: note.type, | ||||
|             mime: note.mime, | ||||
|             isProtected: 0, // will be fixed in the protectNoteRevisions() call | ||||
|             isProtected: false, // will be fixed in the protectNoteRevisions() call | ||||
|             dateModifiedFrom: note.dateModified, | ||||
|             dateModifiedTo: dateUtils.nowDate() | ||||
|         }).save(); | ||||
| @@ -226,7 +226,7 @@ async function updateNote(noteId, noteUpdates) { | ||||
| } | ||||
|  | ||||
| async function deleteNote(branch) { | ||||
|     if (!branch || branch.isDeleted === 1) { | ||||
|     if (!branch || branch.isDeleted) { | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user