Skip to content

Build your personal knowledge base with Trilium Notes

small fixes

zadamfccce2ff1e20
diff --git a/src/entities/note_revision.js b/src/entities/note_revision.js
index 1d0fdae2af..a51f27e254 100644
--- a/src/entities/note_revision.js
+++ b/src/entities/note_revision.js
@@ -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) {
diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.js
index 398a066311..56037e7f19 100644
--- a/src/public/app/entities/note_short.js
+++ b/src/public/app/entities/note_short.js
@@ -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) {
diff --git a/src/routes/api/tree.js b/src/routes/api/tree.js
index d039863382..f371de4e50 100644
--- a/src/routes/api/tree.js
+++ b/src/routes/api/tree.js
@@ -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
});
}
diff --git a/src/services/attributes.js b/src/services/attributes.js
index 63d81b6532..4b7cbec7c1 100644
--- a/src/services/attributes.js
+++ b/src/services/attributes.js
@@ -74,8 +74,6 @@ function getNoteIdsWithLabels(names) {
}
}
- console.log(noteIds);
-
return Array.from(noteIds);
}