From 7b0f0b81a3d86ffd7df31b2dceabf2a14f3b4583 Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Fri, 10 Jun 2022 15:12:07 +0200 Subject: [PATCH] fix: set instanceID correctly in org project mapping (#3789) --- .../repository/eventsourcing/handler/org_project_mapping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auth/repository/eventsourcing/handler/org_project_mapping.go b/internal/auth/repository/eventsourcing/handler/org_project_mapping.go index 8bdba2d63..506fc2eeb 100644 --- a/internal/auth/repository/eventsourcing/handler/org_project_mapping.go +++ b/internal/auth/repository/eventsourcing/handler/org_project_mapping.go @@ -106,7 +106,7 @@ func (p *OrgProjectMapping) Reduce(event *es_models.Event) (err error) { mapping.OrgID = projectGrant.GrantedOrgID mapping.ProjectID = event.AggregateID mapping.ProjectGrantID = projectGrant.GrantID - mapping.InstanceID = projectGrant.InstanceID + mapping.InstanceID = event.InstanceID case project.GrantRemovedType: projectGrant := new(view_model.ProjectGrant) projectGrant.SetData(event)