Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mluukkai committed Oct 16, 2023
1 parent 43e4dc2 commit 5993cee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/reviewQuestionSets.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ reviewQuestionSetsRouter.get('/', checkAdmin, (req, res) => {
.catch((error) => handleDatabaseError(res, error))
})

reviewQuestionSetsRouter.get('/:id', checkLogin, async (req, res) => {
reviewQuestionSetsRouter.get('/:id', async (req, res) => {
try {
const response = await db.ReviewQuestionSet.findByPk(req.params.id)
res.status(200).json(response)
} catch (error) {
console.log('WTF happened', error)
handleDatabaseError(res, error)
}
})
Expand Down

0 comments on commit 5993cee

Please sign in to comment.