Skip to content

Commit

Permalink
Merge pull request #97 from ChangePlusPlusVandy/debug/fix-event-apply…
Browse files Browse the repository at this point in the history
…-post-endpoint

debug/fix-event-apply-POST-endpoint.
  • Loading branch information
DavidHuang2002 committed May 6, 2024
2 parents fbfa0bf + 3c6c4a8 commit 2229b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/event/[id]/apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default async function handler(

// use the id of the saved response to update the volunteerApplications data
await VolunteerApplications.updateOne(
{ eventId: id },
{ event: id },
{
$push: {
responses: newResponse._id,
Expand Down

0 comments on commit 2229b83

Please sign in to comment.