diff --git a/server/app/apis/questions.py b/server/app/apis/questions.py index 29785906568bf7ceafd76322c8e64e177dbb6299..60ed21006c095cf3787d8c302bc4489c4edfaf10 100644 --- a/server/app/apis/questions.py +++ b/server/app/apis/questions.py @@ -80,7 +80,7 @@ class QuestionById(MethodView): return dbc.edit.default(dbc.get.question(competition_id, slide_id, question_id), **args) @protect_route(allowed_roles=["*"]) - @blp.response(http_codes.NO_CONTENT, QuestionSchema) + @blp.response(http_codes.NO_CONTENT, None) @blp.alt_response(http_codes.NOT_FOUND, None, description="Could not find question") @blp.alt_response(http_codes.CONFLICT, None, description="Could not delete question") def delete(self, competition_id, slide_id, question_id): diff --git a/server/app/apis/slides.py b/server/app/apis/slides.py index 5c2d7ad3971ee8f076008ef2fedb7025e33620d8..d394bddf8895b6058b8fe142e8cfafc0845a8316 100644 --- a/server/app/apis/slides.py +++ b/server/app/apis/slides.py @@ -26,10 +26,9 @@ class SlideEditArgsSchema(BaseSchema): class Meta(BaseSchema.Meta): model = models.Slide - order = ma.auto_field(required=False) title = ma.auto_field(required=False) timer = ma.auto_field(required=False) - order = ma.auto_field(required=False) + order = ma.auto_field(required=False, missing=None) background_image_id = ma.auto_field(required=False)