From f95a26acbba809da913f6c11f63798293e2161a3 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Sun, 19 Jan 2025 20:44:26 +0300 Subject: [PATCH] todo-app: get item by id --- server/routers/todo/comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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