diff --git a/pages/api/event/[id]/apply.ts b/pages/api/event/[id]/apply.ts index 038b823..fc7f800 100644 --- a/pages/api/event/[id]/apply.ts +++ b/pages/api/event/[id]/apply.ts @@ -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,