fix: fill resourceowner of project into usergrant projection (#7605)

(cherry picked from commit 517398bba6)
This commit is contained in:
Stefan Benz
2024-03-21 11:31:06 +01:00
committed by Livio Spring
parent 0416153e8e
commit 8f3c91a393
4 changed files with 55 additions and 54 deletions

View File

@@ -18,7 +18,7 @@ import (
)
const (
UserGrantProjectionTable = "projections.user_grants4"
UserGrantProjectionTable = "projections.user_grants5"
UserGrantID = "id"
UserGrantCreationDate = "creation_date"
@@ -445,7 +445,8 @@ func getResourceOwners(ctx context.Context, es handler.EventStore, instanceID, u
EventData(map[string]interface{}{
"grantId": grantID,
})
} else if projectID != "" {
}
if projectID != "" {
builder = builder.Or().
AggregateTypes(project.AggregateType).
AggregateIDs(projectID).