diff --git a/pages/api/events/upcoming-current.ts b/pages/api/events/upcoming-current.ts index 003a0f7..0074097 100644 --- a/pages/api/events/upcoming-current.ts +++ b/pages/api/events/upcoming-current.ts @@ -37,7 +37,7 @@ export default async function handler( // select the events that user signed up for but are still in the application process const inProgressApplications = await ApplicationResponse.find({ - volunteer: session.user._id, + user: session.user._id, }); const inProgressApplicationEventIds = inProgressApplications.map( @@ -63,6 +63,8 @@ export default async function handler( ], }).sort({ startDate: 1 }); + console.log(events); + return res.status(200).json(events); } catch (error) { console.error(error);