mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 06:29:29 +01:00
feat: send flag indicating whether array is requested
This commit is contained in:
@@ -8,7 +8,7 @@ export default class Indexer extends Storage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
this.indices = (await this.read(this.type)) || [];
|
this.indices = (await this.read(this.type, true)) || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
async exists(key) {
|
async exists(key) {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ export default class Storage {
|
|||||||
readMulti(keys) {
|
readMulti(keys) {
|
||||||
return this.storage.readMulti(keys);
|
return this.storage.readMulti(keys);
|
||||||
}
|
}
|
||||||
read(key) {
|
read(key, isArray = false) {
|
||||||
return this.storage.read(key);
|
return this.storage.read(key, isArray);
|
||||||
}
|
}
|
||||||
clear() {
|
clear() {
|
||||||
return this.storage.clear();
|
return this.storage.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user