This commit is contained in:
AndrewTrieu
2023-03-11 18:19:16 +02:00
parent ee0936c8b1
commit f14618b7cc
16 changed files with 70 additions and 59 deletions

View File

@@ -10,7 +10,7 @@ const validationRules = {
const addQuestion = async ({ request, response, params, state, render }) => {
const topicId = params.tId;
const userId = (await state.session.get("user")).id;
const body = request.body({ type: "form-data" });
const body = request.body({ type: "form" });
const formData = await body.value;
const topicName = (await topicService.getTopicByTopicId(topicId)).name;
const questionData = {