From 319d7ee20045495e5d4fe8733776e0cfc57f425d Mon Sep 17 00:00:00 2001 From: David Huang Date: Sat, 11 Nov 2023 16:58:31 -0600 Subject: [PATCH] remove tag-related logic for event signup --- pages/api/event/[id].ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pages/api/event/[id].ts b/pages/api/event/[id].ts index cd083b2..c9896d9 100644 --- a/pages/api/event/[id].ts +++ b/pages/api/event/[id].ts @@ -90,11 +90,6 @@ export default async function handler( // TODO: Speed this up! event.volunteers.unshift(user._id); user.events.unshift(event._id); - if (event.program != null) { - if (!user.tags.includes(event.program.tagName)) { - user.tags.unshift(event.program.tagName); - } - } } else if (userIndex === -1 || eventIndex === -1) { throw new Error('Inconsistency between collections!'); } else {