Skip to content

Commit

Permalink
Added attendee fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aydan Pirani committed Sep 18, 2024
1 parent b681c00 commit 0b905e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/attendee/attendee-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ attendeeRouter.get(
}

const hasFoodRestrictions =
user.dietaryRestrictions.length > 0 ||
user.allergies.length > 0;
user.dietaryRestrictions.includes("VEGAN") ||
user.dietaryRestrictions.includes("GLUTEN-FREE");
const foodwave = hasPriority || hasFoodRestrictions ? 1 : 2;

return res.status(StatusCodes.OK).json({ foodwave: foodwave });
Expand Down

0 comments on commit 0b905e8

Please sign in to comment.