MM-20305: Adds ability to choose whether deleted teams are included in the count query. (#13181)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a1a2bb3130
Коммит
31ac88ef69
@@ -5162,10 +5162,10 @@ func (s *TimerLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError
|
||||
return resultVar0, resultVar1
|
||||
}
|
||||
|
||||
func (s *TimerLayerTeamStore) AnalyticsTeamCount() (int64, *model.AppError) {
|
||||
func (s *TimerLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError) {
|
||||
start := timemodule.Now()
|
||||
|
||||
resultVar0, resultVar1 := s.TeamStore.AnalyticsTeamCount()
|
||||
resultVar0, resultVar1 := s.TeamStore.AnalyticsTeamCount(includeDeleted)
|
||||
|
||||
elapsed := float64(timemodule.Since(start)) / float64(timemodule.Second)
|
||||
if s.Root.Metrics != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user