APIv4 PUT /commands/{command_id} (#5999)
* APIv4 PUT /commands/{command_id}
* update client parameter and api4 test
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
f7b39caf31
Коммит
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
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user