Skip to content

Commit

Permalink
try to fix strange error close connection localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289029 committed Apr 27, 2024
1 parent a342f97 commit dd2979c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions questionsgenerator/questions-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" });
})

Expand Down

0 comments on commit dd2979c

Please sign in to comment.