Merge remote-tracking branch 'origin/optimize-tree'

This commit is contained in:
zadam
2020-12-10 22:54:16 +01:00
17 changed files with 208 additions and 105 deletions

View File

@@ -777,7 +777,7 @@ class Note extends Entity {
* @returns {NoteRevision[]}
*/
getRevisions() {
return this.repository.getEntities("SELECT * FROM note_revisions WHERE noteId = ?", [this.noteId]);
return this.repository.getEntities("SELECT * FROM note_revisions WHERE isErased = 0 AND noteId = ?", [this.noteId]);
}
/**