From 8a0e7c2cb7b7e951154e089d5e27fd406e540974 Mon Sep 17 00:00:00 2001 From: Sinh Date: Mon, 16 Oct 2023 10:23:45 +0700 Subject: [PATCH] update parse response --- partnerapi/kiotviet/kiotviet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partnerapi/kiotviet/kiotviet.go b/partnerapi/kiotviet/kiotviet.go index 7730733..456859b 100644 --- a/partnerapi/kiotviet/kiotviet.go +++ b/partnerapi/kiotviet/kiotviet.go @@ -201,7 +201,7 @@ func (c *Client) UnregisterWebhook(req UnregisterWebhookReq) (*UnregisterWebhook return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats bad request %s", res.Body) } 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 &data, nil