Move Slack Import to App Layer. (#5135)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6097f93704
Коммит
2de6c5394e
@@ -516,7 +516,7 @@ func importTeam(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
switch importFrom {
|
||||
case "slack":
|
||||
var err *model.AppError
|
||||
if err, log = SlackImport(fileData, fileSize, c.TeamId); err != nil {
|
||||
if err, log = app.SlackImport(fileData, fileSize, c.TeamId); err != nil {
|
||||
c.Err = err
|
||||
c.Err.StatusCode = http.StatusBadRequest
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user