Move Slack Import to App Layer. (#5135)

Этот коммит содержится в:
George Goldberg
2017-01-20 14:47:14 +00:00
коммит произвёл Christopher Speller
родитель 6097f93704
Коммит 2de6c5394e
8 изменённых файлов: 215 добавлений и 215 удалений

Просмотреть файл

@@ -6,7 +6,7 @@ import (
"errors"
"os"
"github.com/mattermost/platform/api"
"github.com/mattermost/platform/app"
"github.com/spf13/cobra"
)
@@ -54,7 +54,7 @@ func slackImportCmdF(cmd *cobra.Command, args []string) error {
CommandPrettyPrintln("Running Slack Import. This may take a long time for large teams or teams with many messages.")
api.SlackImport(fileReader, fileInfo.Size(), team.Id)
app.SlackImport(fileReader, fileInfo.Size(), team.Id)
CommandPrettyPrintln("Finished Slack Import.")

Просмотреть файл

@@ -1075,7 +1075,7 @@ func cmdSlackImport() {
fmt.Fprintln(os.Stdout, "Running Slack Import. This may take a long time for large teams or teams with many messages.")
api.SlackImport(fileReader, fileInfo.Size(), team.Id)
app.SlackImport(fileReader, fileInfo.Size(), team.Id)
flushLogAndExit(0)
}