From 0b905e80974601685b595685405d1b7b78ce2f67 Mon Sep 17 00:00:00 2001 From: Aydan Pirani Date: Tue, 17 Sep 2024 22:33:15 -0500 Subject: [PATCH] Added attendee fix --- src/services/attendee/attendee-router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/attendee/attendee-router.ts b/src/services/attendee/attendee-router.ts index d194195..e5adf74 100644 --- a/src/services/attendee/attendee-router.ts +++ b/src/services/attendee/attendee-router.ts @@ -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 });