[MM-13810] Modifies invalid parameter error message for update post and team (#10361)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9052d81790
Коммит
4013e77e3e
@@ -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.
|
// The post being updated in the payload must be the same one as indicated in the URL.
|
||||||
if post.Id != c.Params.PostId {
|
if post.Id != c.Params.PostId {
|
||||||
c.SetInvalidParam("post_id")
|
c.SetInvalidParam("id")
|
||||||
return
|
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.
|
// The team being updated in the payload must be the same one as indicated in the URL.
|
||||||
if team.Id != c.Params.TeamId {
|
if team.Id != c.Params.TeamId {
|
||||||
c.SetInvalidParam("team_id")
|
c.SetInvalidParam("id")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user