mirror of
https://github.com/zadam/trilium.git
synced 2025-01-17 12:39:51 +08:00
small fixes
This commit is contained in:
parent
c949dcb449
commit
fccce2ff1e
4 changed files with 2 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue