Skip to content

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

fix: refresh monographs on sync complete

thecodrre4b1399d45a0
diff --git a/packages/core/api/sync/index.js b/packages/core/api/sync/index.js
index 166d41f52..0c6a19e0d 100644
--- a/packages/core/api/sync/index.js
+++ b/packages/core/api/sync/index.js
@@ -350,6 +350,9 @@ class Sync {
* @private
*/
async onRemoteSyncCompleted(lastSynced) {
+ // refresh monographs on sync completed
+ await this.db.monographs.init();
+
await this.start(false, false, lastSynced);
}