(orgID string)
| 151 | if _, ok := s.orgs[orgID]; !ok { |
| 152 | return gorm.ErrRecordNotFound |
| 153 | } |
| 154 | if _, ok := s.teams[orgID][team.TeamID]; ok { |
| 155 | return errOrgTeamExists |
| 156 | } |
| 157 | for _, t := range s.teams[orgID] { |
| 158 | if t.SchemaName == team.SchemaName { |
| 159 | return configstore.ErrOrgTeamSchemaConflict |
| 160 | } |
| 161 | } |
| 162 | team.OrgID = orgID |
nothing calls this directly
no test coverage detected