summaryrefslogtreecommitdiffstats
path: root/app/command.go
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-04-08 02:06:09 +0900
committerCorey Hulen <corey@hulen.com>2017-04-07 10:06:09 -0700
commita3f5cffd4693446eecdc6f88ed336a4c35c1e708 (patch)
tree3c2a1987e308f07df65f81d85a8a19ebf34cbdba /app/command.go
parentf7b39caf318cf0839c7889d615cbc3ab16c285b2 (diff)
downloadchat-a3f5cffd4693446eecdc6f88ed336a4c35c1e708.tar.gz
chat-a3f5cffd4693446eecdc6f88ed336a4c35c1e708.tar.bz2
chat-a3f5cffd4693446eecdc6f88ed336a4c35c1e708.zip
APIv4 PUT /commands/{command_id} (#5999)
* APIv4 PUT /commands/{command_id} * update client parameter and api4 test
Diffstat (limited to 'app/command.go')
-rw-r--r--app/command.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/command.go b/app/command.go
index 188729ad5..05a4c9158 100644
--- a/app/command.go
+++ b/app/command.go
@@ -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