mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-06 14:17:17 +00:00
fix: project type (#201)
This commit is contained in:
parent
2d369fbcd3
commit
652a408c99
@ -89,6 +89,7 @@ func (p *GrantedProjectView) AppendEvent(event *models.Event) (err error) {
|
||||
case es_model.ProjectAdded:
|
||||
p.State = int32(model.PROJECTSTATE_ACTIVE)
|
||||
p.CreationDate = event.CreationDate
|
||||
p.Type = int32(model.PROJECTTYPE_OWNED)
|
||||
p.setRootData(event)
|
||||
err = p.setData(event)
|
||||
case es_model.ProjectChanged:
|
||||
@ -100,6 +101,7 @@ func (p *GrantedProjectView) AppendEvent(event *models.Event) (err error) {
|
||||
case es_model.ProjectGrantAdded:
|
||||
p.State = int32(model.PROJECTSTATE_ACTIVE)
|
||||
p.CreationDate = event.CreationDate
|
||||
p.Type = int32(model.PROJECTTYPE_GRANTED)
|
||||
p.setRootData(event)
|
||||
err = p.setProjectGrantData(event)
|
||||
case es_model.ProjectGrantChanged:
|
||||
|
Loading…
x
Reference in New Issue
Block a user