@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/package.json
CHANGED
package/src/db-index.js
CHANGED
@@ -244,7 +244,8 @@ export class DbIndex {
|
|
244
244
|
let removeByIdIndexEntries = []
|
245
245
|
await loadIndex(blocks, this.indexById, idIndexOpts)
|
246
246
|
await loadIndex(blocks, this.indexByKey, dbIndexOpts)
|
247
|
-
|
247
|
+
console.log('head', this.dbHead, this.indexById)
|
248
|
+
if (this.indexById.root) {
|
248
249
|
const oldChangeEntries = await this.indexById.root.getMany(result.rows.map(({ key }) => key))
|
249
250
|
oldIndexEntries = oldChangeEntries.result.map((key) => ({ key, del: true }))
|
250
251
|
removeByIdIndexEntries = oldIndexEntries.map(({ key }) => ({ key: key[1], del: true }))
|