Skip to content

Commit

Permalink
fix: solve GetCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Nov 17, 2023
1 parent 9aacd07 commit f0725d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compress/api_customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f0725d9

Please sign in to comment.