* Migrate User.GetProfilesInChannelByStatus to Sync by default #11461 * Refactor review changes #11461 * Refactor review changes #11461 * Refactor review changes #11461
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
2bbfb1026d
Коммит
4b71ee6fe3
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user