A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: items not deleting from collection
thecodrr6bc4e2327b7d
diff --git a/packages/core/database/cached-collection.js b/packages/core/database/cached-collection.jsindex dac4d5726..613d7f5b1 100644--- a/packages/core/database/cached-collection.js+++ b/packages/core/database/cached-collection.js@@ -50,10 +50,9 @@ export default class CachedCollection {async removeItem(id) {if (this.transactionOpen) return;- if (this.map.delete(id)) {- await this.indexer.remove(id);- await this.indexer.deindex(id);- }+ await this.indexer.deindex(id);+ await this.indexer.remove(id);+ this.map.delete(id);}exists(id) {