From f0725d9d03d52107b1b2c6f23b9abee026995dbd Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Fri, 17 Nov 2023 10:37:20 +0100 Subject: [PATCH] fix: solve GetCredentials --- compress/api_customer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compress/api_customer.go b/compress/api_customer.go index 0d072b7..46312bf 100644 --- a/compress/api_customer.go +++ b/compress/api_customer.go @@ -19,7 +19,7 @@ func (o *compress) GetCredentials() (*Credential, error) { if err := json.Unmarshal(resp.Body(), &obj); err != nil { return nil, err } - if obj.Data == "KO" { + if obj.Response == "KO" { return nil, fmt.Errorf("Error %s", obj.Message) } o.debugPrint(obj)