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 }; } /**