Skip to content

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

fix: add async modifier to function

thecodrr215493e55685
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index c20cd7ba9..cd015e79d 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -64,7 +64,7 @@ class Database {
this.text = await Content.new(this, "text", false);
}
- _onUserStateChanged(user) {
+ async _onUserStateChanged(user) {
if (this.evtSource) {
this.evtSource.close();
}