From 86769f1edc052d2a61d1fecca12e71c2ed26b708 Mon Sep 17 00:00:00 2001 From: caadiq Date: Sat, 7 Feb 2026 23:56:45 +0900 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=EB=B4=87=20=EB=AA=A9=EB=A1=9D?= =?UTF-8?q?=20API=EC=97=90=20X=20=EB=B4=87=20=EC=83=81=EC=84=B8=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 스키마에 X 봇 필드 추가 (username, display_name, avatar_url) - X 봇 응답에 db_id, cron_interval 포함 Co-Authored-By: Claude Opus 4.5 --- backend/src/routes/admin/bots.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/backend/src/routes/admin/bots.js b/backend/src/routes/admin/bots.js index 668045a..fae08d7 100644 --- a/backend/src/routes/admin/bots.js +++ b/backend/src/routes/admin/bots.js @@ -29,6 +29,10 @@ const botResponse = { default_member_ids: { type: 'array', items: { type: 'integer' } }, extract_members_from_desc: { type: 'boolean' }, auto_schedule_config: { type: ['object', 'null'], additionalProperties: true }, + // X 봇 전용 필드 + username: { type: 'string' }, + display_name: { type: 'string' }, + avatar_url: { type: 'string' }, }, }; @@ -112,6 +116,15 @@ export default async function botsRoutes(fastify) { botData.auto_schedule_config = bot.autoScheduleNext || null; } + // X 봇인 경우 상세 정보 추가 + if (bot.type === 'x') { + botData.db_id = bot.dbId; + botData.username = bot.username; + botData.display_name = bot.displayName; + botData.avatar_url = bot.avatarUrl; + botData.cron_interval = checkInterval; + } + result.push(botData); }