MM-20305: Adds ability to choose whether deleted teams are included in the count query. (#13181)

Этот коммит содержится в:
Martin Kraft
2019-11-27 07:50:15 -05:00
коммит произвёл GitHub
родитель a1a2bb3130
Коммит 31ac88ef69
11 изменённых файлов: 47 добавлений и 20 удалений

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

@@ -659,7 +659,7 @@ func (a *App) GetAllTeamsPage(offset int, limit int) ([]*model.Team, *model.AppE
}
func (a *App) GetAllTeamsPageWithCount(offset int, limit int) (*model.TeamsWithCount, *model.AppError) {
totalCount, err := a.Srv.Store.Team().AnalyticsTeamCount()
totalCount, err := a.Srv.Store.Team().AnalyticsTeamCount(true)
if err != nil {
return nil, err
}