@fireproof/core 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/fireproof.js
CHANGED
@@ -38835,7 +38835,8 @@ class DbIndex {
|
|
38835
38835
|
let removeByIdIndexEntries = [];
|
38836
38836
|
await loadIndex(blocks, this.indexById, idIndexOpts);
|
38837
38837
|
await loadIndex(blocks, this.indexByKey, dbIndexOpts);
|
38838
|
-
|
38838
|
+
console.log('head', this.dbHead, this.indexById);
|
38839
|
+
if (this.indexById.root) {
|
38839
38840
|
const oldChangeEntries = await this.indexById.root.getMany(result.rows.map(({ key }) => key));
|
38840
38841
|
oldIndexEntries = oldChangeEntries.result.map((key) => ({ key, del: true }));
|
38841
38842
|
removeByIdIndexEntries = oldIndexEntries.map(({ key }) => ({ key: key[1], del: true }));
|