Finish code base

This commit is contained in:
AndrewTrieu
2023-03-12 17:29:07 +02:00
parent b3065cfce1
commit 7089f460a4
8 changed files with 22 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ const deleteAnswer = async ({ params, response }) => {
const topicId = params.tId;
const questionId = params.qId;
const optionId = params.oId;
await answerService.deleteAnswer(questionId, optionId);
await answerService.deleteAnswer(optionId);
response.redirect(`/topics/${topicId}/questions/${questionId}`);
};