From 3c6c4a871d40df664aa18a972f2eb4af92cbc04e Mon Sep 17 00:00:00 2001 From: David Huang Date: Sat, 4 May 2024 20:48:05 +0800 Subject: [PATCH] fix typo --- pages/api/event/[id]/apply.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,