Skip to content

Commit

Permalink
fix: fix merging of GroupAdded event into existing group partial (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius authored Oct 14, 2024
1 parent aae05fc commit 7764da8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ object DocumentMerger:

given DocumentMerger[GroupAdded] =
instance[GroupAdded](_.toModel(DocVersion.NotExists).some) {
case (ga, p: PartialEntityDocument.Group) =>
p.applyTo(ga.toModel(p.version)).some
case (ga, u: GroupDocument) =>
ga.toModel(u.version).some
case _ => None
Expand Down

0 comments on commit 7764da8

Please sign in to comment.