mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
small fixes
This commit is contained in:
parent
c949dcb449
commit
fccce2ff1e
@ -67,7 +67,7 @@ class NoteRevision extends Entity {
|
|||||||
/** @returns {*} */
|
/** @returns {*} */
|
||||||
getContent(silentNotFoundError = false) {
|
getContent(silentNotFoundError = false) {
|
||||||
if (this.content === undefined) {
|
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 (!res) {
|
||||||
if (silentNotFoundError) {
|
if (silentNotFoundError) {
|
||||||
|
@ -59,8 +59,6 @@ class NoteShort {
|
|||||||
this.type = row.type;
|
this.type = row.type;
|
||||||
/** @param {string} content-type, e.g. "application/json" */
|
/** @param {string} content-type, e.g. "application/json" */
|
||||||
this.mime = row.mime;
|
this.mime = row.mime;
|
||||||
/** @param {boolean} */
|
|
||||||
this.isDeleted = !!row.isDeleted;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addParent(parentNoteId, branchId) {
|
addParent(parentNoteId, branchId) {
|
||||||
|
@ -56,8 +56,7 @@ function getNotesAndBranchesAndAttributes(noteIds) {
|
|||||||
title: note.title,
|
title: note.title,
|
||||||
isProtected: note.isProtected,
|
isProtected: note.isProtected,
|
||||||
type: note.type,
|
type: note.type,
|
||||||
mime: note.mime,
|
mime: note.mime
|
||||||
isDeleted: false // FIXME
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,8 +74,6 @@ function getNoteIdsWithLabels(names) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(noteIds);
|
|
||||||
|
|
||||||
return Array.from(noteIds);
|
return Array.from(noteIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user