fix: gebruik create question functie

This commit is contained in:
Gabriellvl 2025-03-13 15:30:07 +01:00
parent 70ba819e46
commit e3e1fc3f05
4 changed files with 23 additions and 23 deletions

View file

@ -104,7 +104,10 @@ export async function createQuestionHandler(req: Request, res: Response): Promis
}
export async function deleteQuestionHandler(req: Request, res: Response): Promise<void> {
const questionId = getQuestionId(res, req)
const questionId = getQuestionId(req, res);
if (!questionId)
return
const question = await deleteQuestion(questionId);