Move Slack Import to App Layer. (#5135)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6097f93704
Коммит
2de6c5394e
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user