mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 22:58:02 +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:
|
case es_model.ProjectAdded:
|
||||||
p.State = int32(model.PROJECTSTATE_ACTIVE)
|
p.State = int32(model.PROJECTSTATE_ACTIVE)
|
||||||
p.CreationDate = event.CreationDate
|
p.CreationDate = event.CreationDate
|
||||||
|
p.Type = int32(model.PROJECTTYPE_OWNED)
|
||||||
p.setRootData(event)
|
p.setRootData(event)
|
||||||
err = p.setData(event)
|
err = p.setData(event)
|
||||||
case es_model.ProjectChanged:
|
case es_model.ProjectChanged:
|
||||||
@ -100,6 +101,7 @@ func (p *GrantedProjectView) AppendEvent(event *models.Event) (err error) {
|
|||||||
case es_model.ProjectGrantAdded:
|
case es_model.ProjectGrantAdded:
|
||||||
p.State = int32(model.PROJECTSTATE_ACTIVE)
|
p.State = int32(model.PROJECTSTATE_ACTIVE)
|
||||||
p.CreationDate = event.CreationDate
|
p.CreationDate = event.CreationDate
|
||||||
|
p.Type = int32(model.PROJECTTYPE_GRANTED)
|
||||||
p.setRootData(event)
|
p.setRootData(event)
|
||||||
err = p.setProjectGrantData(event)
|
err = p.setProjectGrantData(event)
|
||||||
case es_model.ProjectGrantChanged:
|
case es_model.ProjectGrantChanged:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user