From 2d55ac6248f48554927f5acefa9d2de008503607 Mon Sep 17 00:00:00 2001 From: Gerald Schmittinger <165218235+geraldschmittinger@users.noreply.github.com> Date: Tue, 8 Apr 2025 10:59:25 +0200 Subject: [PATCH] fix(backend): Foutmelding createQuestionHandler aangepast. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- backend/src/controllers/questions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/controllers/questions.ts b/backend/src/controllers/questions.ts index 26efb4f4..4df165ee 100644 --- a/backend/src/controllers/questions.ts +++ b/backend/src/controllers/questions.ts @@ -144,7 +144,7 @@ export async function createQuestionHandler(req: Request, res: Response): Promis const questionDTO = req.body as QuestionDTO; if (!questionDTO.learningObjectIdentifier || !questionDTO.author || !questionDTO.inGroup || !questionDTO.content) { - res.status(400).json({ error: 'Missing required fields: identifier and content' }); + res.status(400).json({ error: 'Missing required fields: identifier, author, inGroup, and content' }); return; }