Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: dateEdited -> dateModified

thecodrr794eb0757452
diff --git a/packages/core/collections/note-history.js b/packages/core/collections/note-history.js
index 3378f360e..0a7a88c0f 100644
--- a/packages/core/collections/note-history.js
+++ b/packages/core/collections/note-history.js
@@ -92,7 +92,7 @@ export default class NoteHistory extends Collection {
let history = await this.get(noteId);
if (history.length === 0 || history.length < limit) return;
history.sort(function (a, b) {
- return a.dateEdited - b.dateEdited;
+ return a.dateModified - b.dateModified;
});
let deleteCount = history.length - limit;