[MM-13810] Modifies invalid parameter error message for update post and team (#10361)

Этот коммит содержится в:
Miguel de la Cruz
2019-02-27 14:02:21 +00:00
коммит произвёл GitHub
родитель 9052d81790
Коммит 4013e77e3e
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -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
}

Просмотреть файл

@@ -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
}