Migrate User.GetProfilesInChannelByStatus to Sync by default #11461 (#11623)

* Migrate User.GetProfilesInChannelByStatus to Sync by default #11461

* Refactor review changes #11461

* Refactor review changes #11461

* Refactor review changes #11461
Этот коммит содержится в:
Taufiq Rahman
2019-07-19 13:36:00 +06:00
коммит произвёл Jesús Espino
родитель 2bbfb1026d
Коммит 4b71ee6fe3
5 изменённых файлов: 48 добавлений и 47 удалений

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

@@ -505,11 +505,7 @@ func (a *App) GetUsersInChannel(channelId string, offset int, limit int) ([]*mod
}
func (a *App) GetUsersInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError) {
result := <-a.Srv.Store.User().GetProfilesInChannelByStatus(channelId, offset, limit)
if result.Err != nil {
return nil, result.Err
}
return result.Data.([]*model.User), nil
return a.Srv.Store.User().GetProfilesInChannelByStatus(channelId, offset, limit)
}
func (a *App) GetUsersInChannelMap(channelId string, offset int, limit int, asAdmin bool) (map[string]*model.User, *model.AppError) {