From 623560481b4bce2b87f19765455a461c7a504e31 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Tue, 21 Feb 2017 01:27:57 +0900 Subject: Implementation endpoint for APIv4: GET /teams/name/{name} (#5473) * APIv4: GET /teams/name/{name} Signed-off-by: Saturnino Abril * reorganized test with SystemAdminClient Signed-off-by: Saturnino Abril --- app/team.go | 1 + 1 file changed, 1 insertion(+) (limited to 'app/team.go') diff --git a/app/team.go b/app/team.go index c1560d45a..0c0a6a4da 100644 --- a/app/team.go +++ b/app/team.go @@ -304,6 +304,7 @@ func GetTeam(teamId string) (*model.Team, *model.AppError) { func GetTeamByName(name string) (*model.Team, *model.AppError) { if result := <-Srv.Store.Team().GetByName(name); result.Err != nil { + result.Err.StatusCode = http.StatusNotFound return nil, result.Err } else { return result.Data.(*model.Team), nil -- cgit v1.2.3-1-g7c22