Remove query to update channel extra_update_at field on user activation/deactivation (#8415)

Этот коммит содержится в:
Joram Wilander
2018-03-09 08:06:31 -05:00
коммит произвёл GitHub
родитель 302dae5bb9
Коммит 8ad99b4b1f
6 изменённых файлов: 16 добавлений и 99 удалений

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

@@ -914,10 +914,6 @@ func (a *App) UpdateActive(user *model.User, active bool) (*model.User, *model.A
}
}
if extra := <-a.Srv.Store.Channel().ExtraUpdateByUser(user.Id, model.GetMillis()); extra.Err != nil {
return nil, extra.Err
}
ruser := result.Data.([2]*model.User)[0]
options := a.Config().GetSanitizeOptions()
options["passwordupdate"] = false