Skip to content

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

core: fix auto sync does not send sync complete event

ammarahm-edc8dc5207b491
diff --git a/packages/core/api/sync/index.js b/packages/core/api/sync/index.js
index ebdf50d84..496f03256 100644
--- a/packages/core/api/sync/index.js
+++ b/packages/core/api/sync/index.js
@@ -372,7 +372,7 @@ class Sync {
// refresh monographs on sync completed
await this.db.monographs.init();
// refresh topic references
- this.db.notes.topicReferences.refresh();
+ this.db.notes.topicReferences.rebuild();
await this.start(false, false, lastSynced);
}