mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	small fixes
This commit is contained in:
		| @@ -67,7 +67,7 @@ class NoteRevision extends Entity { | ||||
|     /** @returns {*} */ | ||||
|     getContent(silentNotFoundError = false) { | ||||
|         if (this.content === undefined) { | ||||
|             const res = sql.getRow(`SELECT content, hash FROM note_revision_contents WHERE noteRevisionId = ?`, [this.noteRevisionId]); | ||||
|             const res = sql.getRow(`SELECT content FROM note_revision_contents WHERE noteRevisionId = ?`, [this.noteRevisionId]); | ||||
|  | ||||
|             if (!res) { | ||||
|                 if (silentNotFoundError) { | ||||
|   | ||||
| @@ -59,8 +59,6 @@ class NoteShort { | ||||
|         this.type = row.type; | ||||
|         /** @param {string} content-type, e.g. "application/json" */ | ||||
|         this.mime = row.mime; | ||||
|         /** @param {boolean} */ | ||||
|         this.isDeleted = !!row.isDeleted; | ||||
|     } | ||||
|  | ||||
|     addParent(parentNoteId, branchId) { | ||||
|   | ||||
| @@ -56,8 +56,7 @@ function getNotesAndBranchesAndAttributes(noteIds) { | ||||
|             title: note.title, | ||||
|             isProtected: note.isProtected, | ||||
|             type: note.type, | ||||
|             mime: note.mime, | ||||
|             isDeleted: false // FIXME | ||||
|             mime: note.mime | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -74,8 +74,6 @@ function getNoteIdsWithLabels(names) { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     console.log(noteIds); | ||||
|  | ||||
|     return Array.from(noteIds); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user