Skip to content
Snippets Groups Projects
Commit 8ef61d86 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

fix(1447): Reverting a block should update LevelDBSindex.indexForTrimming (and...

fix(1447): Reverting a block should update LevelDBSindex.indexForTrimming (and not indexForConditions) - close #1447
parent 7b79c56f
No related branches found
No related tags found
No related merge requests found
Pipeline #32248 failed
...@@ -362,9 +362,9 @@ export class LevelDBSindex extends LevelDBTable<SindexEntry> ...@@ -362,9 +362,9 @@ export class LevelDBSindex extends LevelDBTable<SindexEntry>
const existing = await this.getWrittenOnSourceIds(writtenOn); const existing = await this.getWrittenOnSourceIds(writtenOn);
const trimmed = arrayPruneAllCopy(existing, id); const trimmed = arrayPruneAllCopy(existing, id);
if (trimmed.length) { if (trimmed.length) {
await this.indexForConditions.put(k, trimmed); await this.indexForTrimming.put(k, trimmed);
} else { } else {
await this.indexForConditions.del(k); await this.indexForTrimming.del(k);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment