Change the key into index

This commit is contained in:
M. Mert Yildiran 2023-02-14 23:10:38 +03:00
parent 41ba509428
commit 7312addb65
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

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