@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.mjs
CHANGED
@@ -38833,7 +38833,8 @@ class DbIndex {
|
|
38833
38833
|
let removeByIdIndexEntries = [];
|
38834
38834
|
await loadIndex(blocks, this.indexById, idIndexOpts);
|
38835
38835
|
await loadIndex(blocks, this.indexByKey, dbIndexOpts);
|
38836
|
-
|
38836
|
+
console.log('head', this.dbHead, this.indexById);
|
38837
|
+
if (this.indexById.root) {
|
38837
38838
|
const oldChangeEntries = await this.indexById.root.getMany(result.rows.map(({ key }) => key));
|
38838
38839
|
oldIndexEntries = oldChangeEntries.result.map((key) => ({ key, del: true }));
|
38839
38840
|
removeByIdIndexEntries = oldIndexEntries.map(({ key }) => ({ key: key[1], del: true }));
|