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

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

@@ -335,11 +335,11 @@ func (a *App) UpdateBotOwner(botUserId, newOwnerId string) (*model.Bot, *model.A
}
// disableUserBots disables all bots owned by the given user.
func (a *App) disableUserBots(userId string) *model.AppError {
func (a *App) disableUserBots(userID string) *model.AppError {
perPage := 20
for {
options := &model.BotGetOptions{
OwnerId: userId,
OwnerId: userID,
IncludeDeleted: false,
OnlyOrphaned: false,
Page: 0,
@@ -368,10 +368,10 @@ func (a *App) disableUserBots(userId string) *model.AppError {
return nil
}
func (a *App) notifySysadminsBotOwnerDeactivated(userId string) *model.AppError {
func (a *App) notifySysadminsBotOwnerDeactivated(userID string) *model.AppError {
perPage := 25
botOptions := &model.BotGetOptions{
OwnerId: userId,
OwnerId: userID,
IncludeDeleted: false,
OnlyOrphaned: false,
Page: 0,
@@ -423,7 +423,7 @@ func (a *App) notifySysadminsBotOwnerDeactivated(userId string) *model.AppError
}
// user being disabled
user, err := a.GetUser(userId)
user, err := a.GetUser(userID)
if err != nil {
return err
}