diff --git a/src/indexeddb/worker.js b/src/indexeddb/worker.js index 480aaa6..67f6f1c 100644 --- a/src/indexeddb/worker.js +++ b/src/indexeddb/worker.js @@ -287,9 +287,7 @@ class Transaction { async bulkSet(items) { this.prevReads = null; - for (let item of items) { - this.store.put(item.value, item.key); - } + await Promise.all(items.map((item) => this.set(item))); } }