commit session
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 21:48:03 +01:00
parent 88bbeded0f
commit d539472905
2 changed files with 1 additions and 1 deletions

View File

@ -17,6 +17,7 @@ class MealBaseResource(Resource):
try:
self.mealschema.load(body, session=db.session)
db.session.commit()
return '', 204
except ValidationError as error:
abort(406, error.messages)

View File

@ -6,7 +6,6 @@ from .ingredientschema import IngredientSchema
class MealSchema(ma.SQLAlchemyAutoSchema):
# A list of author objects
ingredients = ma.Nested(IngredientSchema, many=True)
class Meta: