Fix duplicates in repository derived stores

This commit is contained in:
Jon Staab
2024-10-18 16:37:47 -07:00
parent 766abe136a
commit af3f951bdd
+4
View File
@@ -52,6 +52,10 @@ export class Repository<E extends HashedEvent = TrustedEvent> extends Emitter {
}
}
for (const id of this.deletes.keys()) {
removed.add(id)
}
this.emit('update', {added, removed})
}