mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-13 00:59:22 -06:00
consistency checks fixes
This commit is contained in:
@@ -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}`);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user