Migration of ChannelStore.GetMoreChannels to return plain error (#14811)

Automatic Merge
Этот коммит содержится в:
Rodrigo Villablanca
2020-06-19 14:26:35 -04:00
коммит произвёл GitHub
родитель 4a974eabea
Коммит d391fd6231
8 изменённых файлов: 20 добавлений и 18 удалений

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

@@ -1619,7 +1619,11 @@ func (a *App) GetDeletedChannels(teamId string, offset int, limit int, userId st
}
func (a *App) GetChannelsUserNotIn(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError) {
return a.Srv().Store.Channel().GetMoreChannels(teamId, userId, offset, limit)
channels, err := a.Srv().Store.Channel().GetMoreChannels(teamId, userId, offset, limit)
if err != nil {
return nil, model.NewAppError("GetChannelsUserNotIn", "app.channel.get_more_channels.get.app_error", nil, err.Error(), http.StatusInternalServerError)
}
return channels, nil
}
func (a *App) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) {