summaryrefslogtreecommitdiffstats
path: root/api/auto_teams.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/auto_teams.go')
-rw-r--r--api/auto_teams.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/api/auto_teams.go b/api/auto_teams.go
index 2fe826774..e5c772b4c 100644
--- a/api/auto_teams.go
+++ b/api/auto_teams.go
@@ -39,22 +39,22 @@ func NewAutoTeamCreator(client *model.Client) *AutoTeamCreator {
func (cfg *AutoTeamCreator) createRandomTeam() (*model.Team, bool) {
var teamEmail string
+ var teamDisplayName string
var teamName string
- var teamDomain string
if cfg.Fuzzy {
teamEmail = utils.FuzzEmail()
+ teamDisplayName = utils.FuzzName()
teamName = utils.FuzzName()
- teamDomain = utils.FuzzName()
} else {
teamEmail = utils.RandomEmail(cfg.EmailLength, cfg.EmailCharset)
- teamName = utils.RandomName(cfg.NameLength, cfg.NameCharset)
- teamDomain = utils.RandomName(cfg.NameLength, cfg.NameCharset) + model.NewId()
+ teamDisplayName = utils.RandomName(cfg.NameLength, cfg.NameCharset)
+ teamName = utils.RandomName(cfg.NameLength, cfg.NameCharset) + model.NewId()
}
team := &model.Team{
- Name: teamName,
- Domain: teamDomain,
- Email: teamEmail,
- Type: model.TEAM_OPEN,
+ DisplayName: teamDisplayName,
+ Name: teamName,
+ Email: teamEmail,
+ Type: model.TEAM_OPEN,
}
result, err := cfg.client.CreateTeam(team)