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
feat: send flag indicating whether array is requested
thecodrr1482440e4211
diff --git a/packages/core/database/indexer.js b/packages/core/database/indexer.jsindex f71e8af60..62bb84605 100644--- a/packages/core/database/indexer.js+++ b/packages/core/database/indexer.js@@ -8,7 +8,7 @@ export default class Indexer extends Storage {}async init() {- this.indices = (await this.read(this.type)) || [];+ this.indices = (await this.read(this.type, true)) || [];}async exists(key) {diff --git a/packages/core/database/storage.js b/packages/core/database/storage.jsindex 91cb72216..628d6124f 100644--- a/packages/core/database/storage.js+++ b/packages/core/database/storage.js@@ -8,8 +8,8 @@ export default class Storage {readMulti(keys) {return this.storage.readMulti(keys);}- read(key) {- return this.storage.read(key);+ read(key, isArray = false) {+ return this.storage.read(key, isArray);}clear() {return this.storage.clear();