hack4impact-calpoly / youth-arts

Hack4Impact Cal Poly nonprofit project for Paso Robles Youth Arts Center
6 stars 2 forks source link

added delete volunteer task route #167

Closed KimLinhVu closed 1 year ago

KimLinhVu commented 1 year ago
ryanchansf commented 1 year ago

Right now, the second pass of filtering through the oppList does not function as intended due to a mismatch in taskIds. Because of this, we should filter out the objects by their startTime and endTime. In the first pass of filtering, when the task is found via its id, store its start and end times in startTime and endTime variables. Then, in the second through the oppList, we can filter out the task object again by making sure that both times match. Note that the start and end fields are both arrays — not sure why the schema was built this way, but make sure that this comparison is between the start and end values of the task object. Finally, test the route in postman for a given taskId and make sure the changes are as expected in the database. Thanks again!