MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
66fc096768
Коммит
17523fa5d9
@@ -47,14 +47,14 @@ func getCommandFromCommandArg(a *app.App, commandArg string) *model.Command {
|
||||
return nil
|
||||
}
|
||||
var err *model.AppError
|
||||
command, err = a.Srv.Store.Command().GetByTrigger(team.Id, commandPart)
|
||||
command, err = a.Srv().Store.Command().GetByTrigger(team.Id, commandPart)
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
if command == nil {
|
||||
command, _ = a.Srv.Store.Command().Get(commandPart)
|
||||
command, _ = a.Srv().Store.Command().Get(commandPart)
|
||||
}
|
||||
|
||||
return command
|
||||
|
||||
Ссылка в новой задаче
Block a user