Channel.GetPublicChannelsByIdsForTeam to sync by default (#11209)

Этот коммит содержится в:
Rodrigo Villablanca Vásquez
2019-06-18 17:14:09 -04:00
коммит произвёл Gabe Jackson
родитель e92ecf6696
Коммит c8f334ab1c
5 изменённых файлов: 59 добавлений и 56 удалений

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

@@ -1258,11 +1258,7 @@ func (a *App) GetChannelsUserNotIn(teamId string, userId string, offset int, lim
}
func (a *App) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) {
result := <-a.Srv.Store.Channel().GetPublicChannelsByIdsForTeam(teamId, channelIds)
if result.Err != nil {
return nil, result.Err
}
return result.Data.(*model.ChannelList), nil
return a.Srv.Store.Channel().GetPublicChannelsByIdsForTeam(teamId, channelIds)
}
func (a *App) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) {