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
fix: check for conflicts before syncing
thecodrr732ef2cac842
diff --git a/packages/core/api/sync/index.js b/packages/core/api/sync/index.jsindex e44c8bd91..66960bbd9 100644--- a/packages/core/api/sync/index.js+++ b/packages/core/api/sync/index.js@@ -168,6 +168,11 @@ class Sync {await this.connection.start();await this.conflicts.recalculate();+ if (await this.conflicts.check()) {+ throw new Error(+ "Merge conflicts detected. Please resolve all conflicts to continue syncing."+ );+ }let lastSynced = await this.db.lastSynced();if (isForceSync) lastSynced = 0;