diff --git a/src/entities/note_revision.js b/src/entities/note_revision.js index 1d0fdae2a..a51f27e25 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 398a06631..56037e7f1 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 d03986338..f371de4e5 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 63d81b653..4b7cbec7c 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); }