fix: correct search params for project role by id (#316)

* fix: project by id loads project from view and from eventstore

* fix: correct search key for role
This commit is contained in:
Silvan
2020-06-30 07:56:03 +02:00
committed by GitHub
parent 3c56fe6a0f
commit 566161ae89
2 changed files with 2 additions and 2 deletions

View File

@@ -258,7 +258,7 @@ func (es *ProjectEventstore) RemoveProjectMember(ctx context.Context, member *pr
func (es *ProjectEventstore) AddProjectRoles(ctx context.Context, roles ...*proj_model.ProjectRole) (*proj_model.ProjectRole, error) {
if roles == nil || len(roles) == 0 {
return nil, caos_errs.ThrowPreconditionFailed(nil, "EVENT-idue3", "Errors.Project.MinimumOneRoleNeeded")
return nil, caos_errs.ThrowPreconditionFailed(nil, "EVENT-uOJAs", "Errors.Project.MinimumOneRoleNeeded")
}
for _, role := range roles {
if !role.IsValid() {