From 01aaccb34080ede234602d1ca9acee8373b8560f Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Mon, 27 Mar 2017 20:41:40 +0900 Subject: APIv4 post /channels/ids (#5845) * APIv4 post /channels/ids * updated enpoint as /teams/{team_id}/channels/ids --- app/channel.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app') diff --git a/app/channel.go b/app/channel.go index 51688ad87..5278abbfe 100644 --- a/app/channel.go +++ b/app/channel.go @@ -676,6 +676,14 @@ func GetChannelsUserNotIn(teamId string, userId string, offset int, limit int) ( } } +func GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) { + if result := <-Srv.Store.Channel().GetPublicChannelsByIdsForTeam(teamId, channelIds); result.Err != nil { + return nil, result.Err + } else { + return result.Data.(*model.ChannelList), nil + } +} + func GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) { if result := <-Srv.Store.Channel().GetPublicChannelsForTeam(teamId, offset, limit); result.Err != nil { return nil, result.Err -- cgit v1.2.3-1-g7c22