Fix conflict on removed values in repository

This commit is contained in:
Jon Staab
2024-10-18 15:55:56 -07:00
parent b34e4923a8
commit 538a7c51af
3 changed files with 12 additions and 19 deletions
+1
View File
@@ -191,6 +191,7 @@ export const deriveEventsMapped = <T>(repository: Repository, {
for (const update of updates) {
for (const event of update.added.values()) {
added.set(event.id, event)
removed.delete(event.id)
}
for (const id of update.removed) {