Skip to content

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

fix: auto sync not triggered on settings update

thecodrr638da3988d62
diff --git a/packages/core/api/settings.js b/packages/core/api/settings.js
index 421b20e49..969abf8d2 100644
--- a/packages/core/api/settings.js
+++ b/packages/core/api/settings.js
@@ -176,7 +176,7 @@ class Settings {
}
await this._db.storage.write("settings", this._settings);
- EV.publish(EVENTS.databaseUpdated, this._settings);
+ this.db.eventManager.publish(EVENTS.databaseUpdated, this._settings);
}
}
export default Settings;