fix: handle project deactivate and remove correctly on tokens (#6947)

This commit is contained in:
Livio Spring
2023-11-21 11:05:22 +02:00
committed by GitHub
parent 492b7d8676
commit ad3563d58b
3 changed files with 50 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ func (p *Project) appendRemovedEvent() error {
func (p *Project) appendOIDCConfig(event eventstore.Event) error {
appEvent := new(oidcApp)
if err := event.Unmarshal(p); err != nil {
if err := event.Unmarshal(appEvent); err != nil {
return err
}
p.OIDCApplications = append(p.OIDCApplications, appEvent)