From 31b370508b3c01c30e8c79b49697d0f26fe544ea Mon Sep 17 00:00:00 2001 From: Nickolay Riumin Date: Wed, 24 Feb 2021 14:28:38 +0300 Subject: [PATCH] Fixed delete method in client.go, previously only the last record was removed. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 13b5a9e..e77616a 100644 --- a/client.go +++ b/client.go @@ -93,7 +93,7 @@ func (at *Client) delete(db, table string, recordIDs []string, target interface{ rawURL := fmt.Sprintf("%s/%s/%s", at.baseURL, db, table) params := url.Values{} for _, recordID := range recordIDs { - params.Set("records[]", recordID) + params.Add("records[]", recordID) } req, err := http.NewRequest("DELETE", rawURL, nil) if err != nil {