* [MM-16173] Migrate Team.AnalyticsTeamCount to Sync by default #11126 + Modified team_store.AnalyticsTeamCount to return (int64, *model.AppError) instead of store.StoreChannel. + Updated the mock store to reflect new return value. + Updated referencing code to handle new sync return value. * Fix shadowing of the err * Fix the empty line between related code * Fix team count call to be an explicit async. * Added error logging to diagnostics.go * Fix gofmt in file
Этот коммит содержится в:
коммит произвёл
Christopher Poile
родитель
e101e1c020
Коммит
b61ded0ae4
@@ -568,10 +568,8 @@ func TestImportImportTeam(t *testing.T) {
|
||||
scheme2 := th.SetupTeamScheme()
|
||||
|
||||
// Check how many teams are in the database.
|
||||
var teamsCount int64
|
||||
if r := <-th.App.Srv.Store.Team().AnalyticsTeamCount(); r.Err == nil {
|
||||
teamsCount = r.Data.(int64)
|
||||
} else {
|
||||
teamsCount, err := th.App.Srv.Store.Team().AnalyticsTeamCount()
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to get team count.")
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user