APIv4 PUT /commands/{command_id} (#5999)
* APIv4 PUT /commands/{command_id}
* update client parameter and api4 test
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
f7b39caf31
Коммит
a3f5cffd46
@@ -312,6 +312,7 @@ func GetCommand(commandId string) (*model.Command, *model.AppError) {
|
||||
}
|
||||
|
||||
if result := <-Srv.Store.Command().Get(commandId); result.Err != nil {
|
||||
result.Err.StatusCode = http.StatusNotFound
|
||||
return nil, result.Err
|
||||
} else {
|
||||
return result.Data.(*model.Command), nil
|
||||
|
||||
Ссылка в новой задаче
Block a user