A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
sync: fix dateEdited being always set to Date.now for delta
thecodrr4eb66538b71e
diff --git a/packages/core/api/sync.js b/packages/core/api/sync.jsindex be3d92029..2d1417c2d 100644--- a/packages/core/api/sync.js+++ b/packages/core/api/sync.js@@ -176,8 +176,8 @@ class Merger {(id) => this._db.delta.raw(id),(item) => this._db.delta.add(item),async (local, remote) => {- await this._db.notes.add({ id: local.noteId, conflicted: true });await this._db.delta.add({ ...local, conflicted: remote });+ await this._db.notes.add({ id: local.noteId, conflicted: true });await this._db.context.write("hasConflicts", true);});diff --git a/packages/core/collections/content.js b/packages/core/collections/content.jsindex 0ddc38c1c..2f27abc06 100644--- a/packages/core/collections/content.js+++ b/packages/core/collections/content.js@@ -17,8 +17,11 @@ export default class Content {noteId: content.noteId,id,data: content.data || content,- conflicted: content.conflicted,+ conflicted: content.conflicted || false,resolved: !!content.resolved,+ dateEdited: content.dateEdited,+ dateCreated: content.dateCreated,+ remote: content.remote,});return id;}