Automatic Merge
Этот коммит содержится в:
SimonSimonB
2021-02-05 11:22:27 +01:00
коммит произвёл GitHub
родитель 4a8496ef7c
Коммит ffebfbf56f
55 изменённых файлов: 1885 добавлений и 1885 удалений

Просмотреть файл

@@ -11,7 +11,7 @@ import (
type AutoChannelCreator struct {
a *app.App
userId string
userID string
team *model.Team
Fuzzy bool
DisplayNameLen utils.Range
@@ -21,11 +21,11 @@ type AutoChannelCreator struct {
ChannelType string
}
func NewAutoChannelCreator(a *app.App, team *model.Team, userId string) *AutoChannelCreator {
func NewAutoChannelCreator(a *app.App, team *model.Team, userID string) *AutoChannelCreator {
return &AutoChannelCreator{
a: a,
team: team,
userId: userId,
userID: userID,
Fuzzy: false,
DisplayNameLen: ChannelDisplayNameLen,
DisplayNameCharset: utils.ALPHANUMERIC,
@@ -49,7 +49,7 @@ func (cfg *AutoChannelCreator) createRandomChannel() (*model.Channel, error) {
DisplayName: displayName,
Name: name,
Type: cfg.ChannelType,
CreatorId: cfg.userId,
CreatorId: cfg.userID,
}
channel, err := cfg.a.CreateChannel(channel, true)

Просмотреть файл

@@ -254,7 +254,7 @@ func (th *TestHelper) createChannel(team *model.Team, channelType string) *model
return channel
}
func (th *TestHelper) createChannelWithAnotherUser(team *model.Team, channelType, userId string) *model.Channel {
func (th *TestHelper) createChannelWithAnotherUser(team *model.Team, channelType, userID string) *model.Channel {
id := model.NewId()
channel := &model.Channel{
@@ -262,7 +262,7 @@ func (th *TestHelper) createChannelWithAnotherUser(team *model.Team, channelType
Name: "name_" + id,
Type: channelType,
TeamId: team.Id,
CreatorId: userId,
CreatorId: userID,
}
utils.DisableDebugLogForTest()