small fixes

This commit is contained in:
zadam 2020-12-14 23:04:56 +01:00
parent c949dcb449
commit fccce2ff1e
4 changed files with 2 additions and 7 deletions

View file

@ -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) {

View file

@ -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) {

View file

@ -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
});
}

View file

@ -74,8 +74,6 @@ function getNoteIdsWithLabels(names) {
}
}
console.log(noteIds);
return Array.from(noteIds);
}