Closed paulshryock closed 3 years ago
Adds a PUT method to the /api/pledges route to bulk-update multiple pledges at once. Requires a request body including an object with to and from object keys containing whatever change to make, like this:
PUT
/api/pledges
to
from
{ "from": { "courseCompleted": "N/A" }, "to": { "courseCompleted": false } }
The above example would change all pledges with courseCompleted set to N/A to now have it set to false.
courseCompleted
N/A
false
Closes #93
updatePledges()
Summary
Adds a
PUT
method to the/api/pledges
route to bulk-update multiple pledges at once. Requires a request body including an object withto
andfrom
object keys containing whatever change to make, like this:The above example would change all pledges with
courseCompleted
set toN/A
to now have it set tofalse
.Issue(s)
Closes #93
Changelog
Added
updatePledges()
method. [#89]Checklist