Skip to content

Commit

Permalink
Remove comments on description field
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhpark committed Oct 24, 2023
1 parent e78196a commit c9d4d9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions backend/app/graphql/meal_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion backend/app/models/meal_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c9d4d9a

Please sign in to comment.