We already have a method for deleting a single pledge, by sending a DELETE request to the /api/pledges/:idroute, with a body that contains an object with an id property.
This change adds a method for bulk-deleting multiple pledges at once, by sending a DELETE request to /api/pledges, with a body that contains an object with a pledges property, with either a string or array of strings.
11/23/2020: I used this method to remove all of the duplicate pledges from the database.
Issues
Closes #84
Changelog
Added
Add a method for bulk-deleting multiple pledges at once [#84][#84]
Summary
We already have a method for deleting a single pledge, by sending a
DELETE
request to the/api/pledges/:id
route, with a body that contains an object with anid
property.This change adds a method for bulk-deleting multiple pledges at once, by sending a
DELETE
request to/api/pledges
, with a body that contains an object with apledges
property, with either a string or array of strings.11/23/2020: I used this method to remove all of the duplicate pledges from the database.
Issues
Closes #84
Changelog
Added
Removed
createPledgeLegacy()
methodChecklist