fix queueadd
parent
55bef831c2
commit
e0a0904c90
|
@ -86,7 +86,8 @@ func (c *Cli) MenuGetAllEnabled() (ret []types.Menu, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Cli) QueueAdd(job string, bs []byte) error {
|
func (c *Cli) QueueAdd(job string, bs []byte) error {
|
||||||
return c.cli.HttpJsonGet("/api/v1/queue/add/"+job, bs)
|
_, err := c.cli.HttpRawPost("/api/v1/queue/add/"+job, bs)
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
func (c *Cli) QueueGetData(id string) (ret []byte, err error) {
|
func (c *Cli) QueueGetData(id string) (ret []byte, err error) {
|
||||||
ret, err = c.cli.HttpRawGet("/api/v1/queue/getrequest/" + id)
|
ret, err = c.cli.HttpRawGet("/api/v1/queue/getrequest/" + id)
|
||||||
|
|
Loading…
Reference in New Issue