Skip to content

Commit

Permalink
remove tag-related logic for event signup
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuang2002 committed Nov 11, 2023
1 parent 2a77b40 commit 319d7ee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pages/api/event/[id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 319d7ee

Please sign in to comment.