Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ReflectionsProjections/rp-api
Browse files Browse the repository at this point in the history
  • Loading branch information
divyack2 committed Sep 18, 2024
2 parents 7a22d74 + 95ae757 commit 93d05c5
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.includes("VEGAN") ||
user.dietaryRestrictions.includes("GLUTEN-FREE");
user.dietaryRestrictions.length > 0 ||
user.allergies.length > 0;
const foodwave = hasPriority || hasFoodRestrictions ? 1 : 2;

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

0 comments on commit 93d05c5

Please sign in to comment.