From 7d140aa1f3a6bef5619232ba460711f70dde3ea1 Mon Sep 17 00:00:00 2001 From: caadiq Date: Sun, 8 Feb 2026 09:57:04 +0900 Subject: [PATCH] =?UTF-8?q?fix(x-bot):=20=EB=8F=99=EA=B8=B0=ED=99=94=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=EC=97=90=20total=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - syncNewTweets(), syncAllTweets()에 total 필드 추가 - 프론트엔드 토스트에서 undefined 표시되던 문제 해결 Co-Authored-By: Claude Opus 4.5 --- backend/src/services/x/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/services/x/index.js b/backend/src/services/x/index.js index daf7b22..b228d35 100644 --- a/backend/src/services/x/index.js +++ b/backend/src/services/x/index.js @@ -191,7 +191,7 @@ async function xBotPlugin(fastify, opts) { } } - return { addedCount: addedCount + ytAddedCount, tweetCount: addedCount, ytCount: ytAddedCount }; + return { addedCount: addedCount + ytAddedCount, total: tweets.length, tweetCount: addedCount, ytCount: ytAddedCount }; } /** @@ -219,7 +219,7 @@ async function xBotPlugin(fastify, opts) { } } - return { addedCount: addedCount + ytAddedCount, tweetCount: addedCount, ytCount: ytAddedCount }; + return { addedCount: addedCount + ytAddedCount, total: tweets.length, tweetCount: addedCount, ytCount: ytAddedCount }; } /**