From a3f5cffd4693446eecdc6f88ed336a4c35c1e708 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Sat, 8 Apr 2017 02:06:09 +0900 Subject: APIv4 PUT /commands/{command_id} (#5999) * APIv4 PUT /commands/{command_id} * update client parameter and api4 test --- app/command.go | 1 + 1 file changed, 1 insertion(+) (limited to 'app/command.go') 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 -- cgit v1.2.3-1-g7c22