diff options
Diffstat (limited to 'cmd/platform/teamargs.go')
-rw-r--r-- | cmd/platform/teamargs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/teamargs.go b/cmd/platform/teamargs.go index 31f7b489e..3b83aaa59 100644 --- a/cmd/platform/teamargs.go +++ b/cmd/platform/teamargs.go @@ -18,12 +18,12 @@ func getTeamsFromTeamArgs(teamArgs []string) []*model.Team { func getTeamFromTeamArg(teamArg string) *model.Team { var team *model.Team - if result := <-app.Srv.Store.Team().GetByName(teamArg); result.Err == nil { + if result := <-app.Global().Srv.Store.Team().GetByName(teamArg); result.Err == nil { team = result.Data.(*model.Team) } if team == nil { - if result := <-app.Srv.Store.Team().Get(teamArg); result.Err == nil { + if result := <-app.Global().Srv.Store.Team().Get(teamArg); result.Err == nil { team = result.Data.(*model.Team) } } |