Skip to content

Commit

Permalink
fix: snapshot command idempotency
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Oct 29, 2024
1 parent 43f5eca commit b48f525
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/BuildingRegistry/AllStream/Commands/CreateOsloSnapshots.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,15 @@ public Guid CreateCommandId()

private IEnumerable<object> IdentityFields()
{
yield return BuildingPersistentLocalIds;
yield return BuildingUnitPersistentLocalIds;
foreach (var id in BuildingPersistentLocalIds)
{
yield return id;
}

foreach (var id in BuildingUnitPersistentLocalIds)
{
yield return id;
}

foreach (var field in Provenance.GetIdentityFields())
{
Expand Down

0 comments on commit b48f525

Please sign in to comment.