fix: add project validation (#996)

This commit is contained in:
Silvan 2020-11-21 13:38:32 +01:00 committed by GitHub
parent 7e3ace7a96
commit 5d2c053f87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,7 +513,7 @@ func addProjectValidation(projectName string) func(...*es_models.Event) error {
case model.ProjectChanged:
_, project := model.GetProject(projects, event.AggregateID)
project.AppendAddProjectEvent(event)
case model.ProjectRoleRemoved:
case model.ProjectRemoved:
for i, project := range projects {
if project.AggregateID == event.AggregateID {
projects[i] = projects[len(projects)-1]