From 99e21517718345cd74eebd368cc2668044498fa9 Mon Sep 17 00:00:00 2001 From: Daniel Pan <57362494+daniel-panhead@users.noreply.github.com> Date: Wed, 6 Nov 2024 00:27:13 -0800 Subject: [PATCH] Add attended events column to applicants firebase queries --- utility/utilities.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utility/utilities.js b/utility/utilities.js index 73184b0..c52874c 100644 --- a/utility/utilities.js +++ b/utility/utilities.js @@ -109,6 +109,8 @@ export const filterHackerInfoFields = (obj, collection) => { newObj.longAnswers1 = obj.skills?.longAnswers1 || false newObj.longAnswers2 = obj.skills?.longAnswers2 || false newObj.longAnswers3 = obj.skills?.longAnswers3 || false + + newObj.attendedEvents = obj.dayOf?.events?.map(e => e.eventName).join(', ') ?? '' } else if (collection === 'Projects') { newObj = { ...obj } delete newObj.grades