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
core: sync settings before everything else
Abdullah Attab81843cdf78c
diff --git a/packages/core/src/api/sync/collector.js b/packages/core/src/api/sync/collector.jsindex 7c83c8dc2..aa033b01a 100644--- a/packages/core/src/api/sync/collector.js+++ b/packages/core/src/api/sync/collector.js@@ -44,6 +44,15 @@ class Collector {async *collect(chunkSize, lastSyncedTimestamp, isForceSync) {const key = await this._db.user.getEncryptionKey();+ const settings = await this.prepareChunk(+ [this._db.settings.raw],+ lastSyncedTimestamp,+ isForceSync,+ key,+ "settings"+ );+ if (settings) yield settings;+const attachments = await this.prepareChunk(this._db.attachments.syncable,lastSyncedTimestamp,@@ -84,15 +93,6 @@ class Collector {yield items;}}-- const settings = await this.prepareChunk(- [this._db.settings.raw],- lastSyncedTimestamp,- isForceSync,- key,- "settings"- );- if (settings) yield settings;}async prepareChunk(chunk, lastSyncedTimestamp, isForceSync, key, itemType) {