diff --git a/internal/connect/hub.go b/internal/connect/hub.go index 1fa1040e0..b1d3440e9 100644 --- a/internal/connect/hub.go +++ b/internal/connect/hub.go @@ -231,7 +231,7 @@ func (connector *Connector) PostScript(script *misc.Script) (index int64, err er return } - val, ok := j["key"] + val, ok := j["index"] if !ok { err = errors.New("Response does not contain `key` field!") return