fix(backend): Foutmelding createQuestionHandler aangepast.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									8a55c0f003
								
							
						
					
					
						commit
						2d55ac6248
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -144,7 +144,7 @@ export async function createQuestionHandler(req: Request, res: Response): Promis | ||||||
|     const questionDTO = req.body as QuestionDTO; |     const questionDTO = req.body as QuestionDTO; | ||||||
| 
 | 
 | ||||||
|     if (!questionDTO.learningObjectIdentifier || !questionDTO.author || !questionDTO.inGroup || !questionDTO.content) { |     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; |         return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger