diff --git a/mealapi/schemas/mealschema.py b/mealapi/schemas/mealschema.py index 34b10e5..0849a7b 100644 --- a/mealapi/schemas/mealschema.py +++ b/mealapi/schemas/mealschema.py @@ -7,7 +7,7 @@ from .ingredientschema import IngredientSchema class MealSchema(ma.SQLAlchemyAutoSchema): # A list of author objects - authors = ma.Nested(IngredientSchema, many=True) + ingredients = ma.Nested(IngredientSchema, many=True) class Meta: model = Meal