diff --git a/questionsgenerator/questions-service.js b/questionsgenerator/questions-service.js index 76e9278..177e1d6 100644 --- a/questionsgenerator/questions-service.js +++ b/questionsgenerator/questions-service.js @@ -48,6 +48,7 @@ app.get('/generateQuestions', async (req, res) => { const generator = new QuestionGenerator(); await generator.loadTemplates(); await generator.generate10Questions(); + generator.close(); res.status(200).json({ msg: "Questions generated successfully" }); })