summaryrefslogtreecommitdiffstats
path: root/cmd/platform/mattermost.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/platform/mattermost.go')
-rw-r--r--cmd/platform/mattermost.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/platform/mattermost.go b/cmd/platform/mattermost.go
index 8396b00c0..3c0add061 100644
--- a/cmd/platform/mattermost.go
+++ b/cmd/platform/mattermost.go
@@ -8,7 +8,6 @@ import (
"fmt"
"os"
- "github.com/mattermost/mattermost-server/app"
"github.com/spf13/cobra"
// Plugins
@@ -59,7 +58,8 @@ var resetCmd = &cobra.Command{
}
func resetCmdF(cmd *cobra.Command, args []string) error {
- if err := initDBCommandContextCobra(cmd); err != nil {
+ a, err := initDBCommandContextCobra(cmd)
+ if err != nil {
return err
}
@@ -79,7 +79,7 @@ func resetCmdF(cmd *cobra.Command, args []string) error {
}
}
- app.Global().Srv.Store.DropAllTables()
+ a.Srv.Store.DropAllTables()
CommandPrettyPrintln("Database sucessfully reset")
return nil