mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
APIv4 PUT /commands/{command_id} (#5999)
* APIv4 PUT /commands/{command_id}
* update client parameter and api4 test
This commit is contained in:
committed by
Corey Hulen
parent
f7b39caf31
commit
a3f5cffd46
@@ -477,3 +477,14 @@ func (c *Context) RequireHookId() *Context {
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireCommandId() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
}
|
||||
|
||||
if len(c.Params.CommandId) != 26 {
|
||||
c.SetInvalidUrlParam("command_id")
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user