consistency checks fixes

This commit is contained in:
zadam
2020-07-01 22:42:59 +02:00
parent f0b608ddec
commit 78a2c1753e
4 changed files with 43 additions and 39 deletions

View File

@@ -117,7 +117,6 @@ class Note extends Entity {
return JSON.parse(content);
}
/** @returns {Promise} */
setContent(content) {
if (content === null || content === undefined) {
throw new Error(`Cannot set null content to note ${this.noteId}`);

View File

@@ -100,7 +100,6 @@ class NoteRevision extends Entity {
}
}
/** @returns {Promise} */
setContent(content) {
// force updating note itself so that utcDateModified is represented correctly even for the content
this.forcedChange = true;