Skip to content

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

fix: init indexer no matter what

thecodrrd7889cc3ff3b
diff --git a/packages/core/collections/collection.js b/packages/core/collections/collection.js
index 775581c8f..f044023ff 100644
--- a/packages/core/collections/collection.js
+++ b/packages/core/collections/collection.js
@@ -7,6 +7,8 @@ class Collection {
const collection = new this(db, name, cached);
if (!deferred && collection.init) await collection.init();
+ else await collection._collection.indexer.init();
+
if (collection._collection.clear)
EV.subscribe(
"user:loggedOut",
diff --git a/packages/core/database/backup.js b/packages/core/database/backup.js
index e91c4abc2..eef1c32ff 100644
--- a/packages/core/database/backup.js
+++ b/packages/core/database/backup.js
@@ -1,4 +1,5 @@
import Hashes from "jshashes";
+import { sendCheckUserStatusEvent } from "../common.js";
const md5 = new Hashes.MD5();
const invalidKeys = ["user", "t", "lastBackupTime"];