fix: gebruik create question functie
This commit is contained in:
parent
70ba819e46
commit
e3e1fc3f05
4 changed files with 23 additions and 23 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue