From 4013e77e3e6d1d6bd058282c9e131a817f169909 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Wed, 27 Feb 2019 14:02:21 +0000 Subject: [PATCH] [MM-13810] Modifies invalid parameter error message for update post and team (#10361) --- api4/post.go | 2 +- api4/team.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api4/post.go b/api4/post.go index b29a0699d7..b5521b4094 100644 --- a/api4/post.go +++ b/api4/post.go @@ -431,7 +431,7 @@ func updatePost(c *Context, w http.ResponseWriter, r *http.Request) { // The post being updated in the payload must be the same one as indicated in the URL. if post.Id != c.Params.PostId { - c.SetInvalidParam("post_id") + c.SetInvalidParam("id") return } diff --git a/api4/team.go b/api4/team.go index 53ee61bba7..1fed90a64c 100644 --- a/api4/team.go +++ b/api4/team.go @@ -139,7 +139,7 @@ func updateTeam(c *Context, w http.ResponseWriter, r *http.Request) { // The team being updated in the payload must be the same one as indicated in the URL. if team.Id != c.Params.TeamId { - c.SetInvalidParam("team_id") + c.SetInvalidParam("id") return }