diff options
Diffstat (limited to 'cmd/platform/teamargs.go')
-rw-r--r-- | cmd/platform/teamargs.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/platform/teamargs.go b/cmd/platform/teamargs.go index 5ad56f5d9..506cc88ef 100644 --- a/cmd/platform/teamargs.go +++ b/cmd/platform/teamargs.go @@ -3,7 +3,7 @@ package main import ( - "github.com/mattermost/platform/api" + "github.com/mattermost/platform/app" "github.com/mattermost/platform/model" ) @@ -18,12 +18,12 @@ func getTeamsFromTeamArgs(teamArgs []string) []*model.Team { func getTeamFromTeamArg(teamArg string) *model.Team { var team *model.Team - if result := <-api.Srv.Store.Team().GetByName(teamArg); result.Err == nil { + if result := <-app.Srv.Store.Team().GetByName(teamArg); result.Err == nil { team = result.Data.(*model.Team) } if team == nil { - if result := <-api.Srv.Store.Team().Get(teamArg); result.Err == nil { + if result := <-app.Srv.Store.Team().Get(teamArg); result.Err == nil { team = result.Data.(*model.Team) } } |