From 392ce8712a6af80f52bac12ae28826840dd439da Mon Sep 17 00:00:00 2001 From: yjhss <20211420@sungshin.ac.kr> Date: Wed, 12 Feb 2025 22:21:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=83=80=EC=9E=84=EB=9D=BC=EC=9D=B8=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20API=20=EC=9D=91=EB=8B=B5=EC=97=90=20items?= =?UTF-8?q?=20=EB=91=90=20=EB=B2=88=20=EB=82=98=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/domains/timeline/controller/timelineController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domains/timeline/controller/timelineController.js b/src/domains/timeline/controller/timelineController.js index 5b0761d..587e9f8 100644 --- a/src/domains/timeline/controller/timelineController.js +++ b/src/domains/timeline/controller/timelineController.js @@ -74,7 +74,7 @@ const getTimelineById = async (req, res) => { } logger.info(`Successfully fetched a timeline: userId = ${userId}, timelineId = ${timelineId}`); - return res.status(200).json({ timeline: timeline, items: timeline.items }); + return res.status(200).json({ timeline }); } catch (error) { logger.error(`Failed to fetch a timeline with ID: ${timelineId} for user: ${userId}, Error: ${error.message}`); return res.status(500).json({ success: false, message: 'Failed to retrieve timeline' });