fix: handling of (old) IDPConfigChangedEvent projection (#5384)

This commit is contained in:
Livio Spring
2023-03-07 11:35:47 +01:00
committed by GitHub
parent 8d4d182c20
commit b2786d8c68
5 changed files with 765 additions and 180 deletions

View File

@@ -17,7 +17,7 @@ import (
)
const (
IDPTemplateTable = "projections.idp_templates2"
IDPTemplateTable = "projections.idp_templates3"
IDPTemplateOAuthTable = IDPTemplateTable + "_" + IDPTemplateOAuthSuffix
IDPTemplateOIDCTable = IDPTemplateTable + "_" + IDPTemplateOIDCSuffix
IDPTemplateJWTTable = IDPTemplateTable + "_" + IDPTemplateJWTSuffix
@@ -707,8 +707,8 @@ func (p *idpTemplateProjection) reduceOldConfigChanged(event eventstore.Event) (
event,
cols,
[]handler.Condition{
handler.NewCond(OIDCIDCol, idpEvent.ConfigID),
handler.NewCond(OIDCInstanceIDCol, idpEvent.Aggregate().InstanceID),
handler.NewCond(IDPTemplateIDCol, idpEvent.ConfigID),
handler.NewCond(IDPTemplateInstanceIDCol, idpEvent.Aggregate().InstanceID),
},
), nil
}