diff --git a/api/replay/cli.go b/api/replay/cli.go index 36bca96..415438b 100644 --- a/api/replay/cli.go +++ b/api/replay/cli.go @@ -135,12 +135,12 @@ func (c *Cli) QueueGetDataBody(id string) (ret []byte, err error) { func (c *Cli) QueueGetMyData() ([]byte, error) { return c.QueueGetData(os.Getenv("REPLAY_QUEUEID")) } -func (c *Cli) QueueGetMyJson(i interface{}) error { +func (c *Cli) QueueGetMyJson(i *interface{}) error { bs, err := c.QueueGetData(os.Getenv("REPLAY_QUEUEID")) if err != nil { return err } - err = json.Unmarshal(bs, i) + err = json.Unmarshal(bs, &i) return err } func (c *Cli) QueueAbort() error {