[MM-16658] Migrate User.GetProfilesInChannel to Sync by default #11462 (#11685)

* Migrate User.GetProfilesInChannel to Sync by default #11462

* Refactor variable names #11462
Этот коммит содержится в:
Taufiq Rahman
2019-07-26 17:11:13 +06:00
коммит произвёл Jesús Espino
родитель 447589a06e
Коммит 7e092886dc
5 изменённых файлов: 43 добавлений и 42 удалений

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

@@ -516,11 +516,7 @@ func (a *App) GetUsersNotInTeamEtag(teamId string, restrictionsHash string) stri
}
func (a *App) GetUsersInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError) {
result := <-a.Srv.Store.User().GetProfilesInChannel(channelId, offset, limit)
if result.Err != nil {
return nil, result.Err
}
return result.Data.([]*model.User), nil
return a.Srv.Store.User().GetProfilesInChannel(channelId, offset, limit)
}
func (a *App) GetUsersInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError) {