From 7312addb65961fa082792d352d036067fa1d8c1b Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Tue, 14 Feb 2023 23:10:38 +0300 Subject: [PATCH] :zap: Change the key into `index` --- internal/connect/hub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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