only update wrong grants

This commit is contained in:
adlerhurst
2024-12-19 14:21:22 +01:00
parent b51e381149
commit b77541998f
2 changed files with 7 additions and 0 deletions

View File

@@ -283,6 +283,7 @@ func (p *projectGrantProjection) reduceOwnerCorrected(event eventstore.Event) (*
[]handler.Condition{
handler.NewCond(ProjectGrantColumnInstanceID, event.Aggregate().InstanceID),
handler.NewCond(ProjectGrantColumnProjectID, event.Aggregate().ID),
handler.NewUnequalCond(ProjectGrantColumnResourceOwner, event.Aggregate().ResourceOwner),
},
), nil
}