diff --git a/server/routers/todo/comment.js b/server/routers/todo/comment.js index 6b19ffe..c4ebbf0 100644 --- a/server/routers/todo/comment.js +++ b/server/routers/todo/comment.js @@ -47,7 +47,7 @@ router.get('/:todoId/:itemId', async (req, res) => { return res.send(getAnswer(new Error('no such item'))) } - res.send(getAnswer(null, item.comments)) + res.send(getAnswer(null, item)) }) module.exports = router