fix queueadd

nats
Paulo Simão 2021-10-10 06:05:27 -03:00
parent 55bef831c2
commit e0a0904c90
1 changed files with 2 additions and 1 deletions

View File

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