Skip to content

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

core: fix sync not running on app startup

Abdullah Atta59e06ef93814
diff --git a/packages/core/src/api/sync/index.ts b/packages/core/src/api/sync/index.ts
index ba12df29b..064d7825d 100644
--- a/packages/core/src/api/sync/index.ts
+++ b/packages/core/src/api/sync/index.ts
@@ -170,7 +170,7 @@ class Sync {
}
async start(options: SyncOptions) {
- this.createConnection(options);
+ await this.createConnection(options);
if (!this.connection) return;
if (!(await checkSyncStatus(SYNC_CHECK_IDS.sync))) {