fix: remove/clear is not async

This commit is contained in:
thecodrr
2020-02-20 12:11:16 +05:00
parent 22f0260c37
commit 389e4612db
3 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ export default class CachedCollection {
async removeItem(id) {
if (this.transactionOpen) return;
if (this.map.delete(id)) {
this.indexer.remove(id);
await this.indexer.remove(id);
await this.indexer.deindex(id);
}
}