From c9d4d9a4f86c167f5f2ef6462bff7e0d6eaa481a Mon Sep 17 00:00:00 2001 From: William Park Date: Mon, 23 Oct 2023 17:49:08 -0700 Subject: [PATCH] Remove comments on description field --- backend/app/graphql/meal_request.py | 4 +--- backend/app/models/meal_request.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/app/graphql/meal_request.py b/backend/app/graphql/meal_request.py index 4a5bb79f..7655412e 100644 --- a/backend/app/graphql/meal_request.py +++ b/backend/app/graphql/meal_request.py @@ -46,10 +46,8 @@ class CreateMealRequestResponse(graphene.ObjectType): # Mutations class CreateMealRequests(Mutation): class Arguments: + description = graphene.String(required=True) requestor = graphene.ID(required=True) - description = graphene.String( - required=True - ) # is this ever used in the frontend? # request_dates is a list of dates request_dates = graphene.List(graphene.Date, required=True) diff --git a/backend/app/models/meal_request.py b/backend/app/models/meal_request.py index f4c50671..2cbcf761 100644 --- a/backend/app/models/meal_request.py +++ b/backend/app/models/meal_request.py @@ -29,7 +29,7 @@ class DonationInfo(mg.EmbeddedDocument): class MealRequest(mg.Document): requestor = mg.ObjectIdField(required=True) - description = mg.StringField(required=True) # is this needed? + description = mg.StringField(required=True) status = mg.EnumField(MealStatus, required=True, default=MealStatus.OPEN) drop_off_datetime = mg.DateTimeField(required=True) drop_off_location = mg.StringField(required=True)