diff --git a/backend/question-backend/controller/addQuestion.js b/backend/question-backend/controller/addQuestion.js index 106b37fc..18172b2e 100644 --- a/backend/question-backend/controller/addQuestion.js +++ b/backend/question-backend/controller/addQuestion.js @@ -6,6 +6,7 @@ export async function addQuestion (req, res) { return } try { + console.log(req.body) const question = new Question({ id: req.body.id, @@ -14,6 +15,7 @@ export async function addQuestion (req, res) { categories: req.body.categories, complexity: req.body.complexity, }) + await question.save(); res.send("Success") } catch (error) { console.log(error)