Remove direct Store calls from the Api layer for the file api4/channe… (#15754)

Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Этот коммит содержится в:
Shobhit Gupta
2020-10-07 02:59:34 -07:00
коммит произвёл GitHub
родитель b20dc1828a
Коммит 0e140dad2f
5 изменённых файлов: 55 добавлений и 2 удалений

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

@@ -1736,9 +1736,9 @@ func channelMemberCountsByGroup(c *Context, w http.ResponseWriter, r *http.Reque
includeTimezones := r.URL.Query().Get("include_timezones") == "true"
channelMemberCounts, err := c.App.Srv().Store.Channel().GetMemberCountsByGroup(c.Params.ChannelId, includeTimezones)
channelMemberCounts, err := c.App.GetMemberCountsByGroup(c.Params.ChannelId, includeTimezones)
if err != nil {
c.Err = model.NewAppError("Api4.channelMemberCountsByGroup", "app.channel.get_member_count.app_error", nil, err.Error(), http.StatusInternalServerError)
c.Err = err
return
}