fix: project type (#201)

This commit is contained in:
Fabi 2020-06-10 13:24:55 +02:00 committed by GitHub
parent 2d369fbcd3
commit 652a408c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: