update parse response
This commit is contained in:
parent
03b68fd7e4
commit
8a0e7c2cb7
|
@ -201,7 +201,7 @@ func (c *Client) UnregisterWebhook(req UnregisterWebhookReq) (*UnregisterWebhook
|
||||||
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats bad request %s", res.Body)
|
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats bad request %s", res.Body)
|
||||||
}
|
}
|
||||||
var data UnregisterWebhookRes
|
var data UnregisterWebhookRes
|
||||||
if err = r.ParseResponseData(&data); err != nil {
|
if err = r.ParseResponseData(&data.Success); err != nil {
|
||||||
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats parse response %v, %s", err, res.Body)
|
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats parse response %v, %s", err, res.Body)
|
||||||
}
|
}
|
||||||
return &data, nil
|
return &data, nil
|
||||||
|
|
Loading…
Reference in New Issue