Merge pull request #5 from grebble-team/master

Fix Bulk delete records error
This commit is contained in:
mehanizm
2021-02-24 16:46:57 +03:00
committed by GitHub

View File

@@ -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 {