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

This commit is contained in:
Torma Kristóf 2022-02-13 21:54:43 +01:00
parent d539472905
commit 70c473dc76

View File

@ -16,7 +16,8 @@ class MealBaseResource(Resource):
body = request.get_json()
try:
self.mealschema.load(body, session=db.session)
loadedobj = self.mealschema.load(body)
db.session.add(loadedobj)
db.session.commit()
return '', 204
except ValidationError as error: