From 0c91abd722d38a7fcc4b8c1351c69b88df882f76 Mon Sep 17 00:00:00 2001 From: caadiq Date: Mon, 5 Jan 2026 22:51:37 +0900 Subject: [PATCH] =?UTF-8?q?fix(bot):=20=EB=B4=87=20=EB=AA=A9=EB=A1=9D=20AP?= =?UTF-8?q?I=20=EC=88=98=EC=A0=95=20-=20JOIN=20=EC=A0=9C=EA=B1=B0,=20ID=20?= =?UTF-8?q?=EC=98=A4=EB=A6=84=EC=B0=A8=EC=88=9C=20=EC=A0=95=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - bots 테이블에서 직접 조회 (bot_youtube_config JOIN 제거) - channel_id, rss_url 등이 bots 테이블에 직접 저장됨 - 정렬 순서: created_at DESC → id ASC - 오류 발생 후 목록 갱신 추가 --- backend/routes/admin.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/routes/admin.js b/backend/routes/admin.js index a01ceeb..c4330c1 100644 --- a/backend/routes/admin.js +++ b/backend/routes/admin.js @@ -1662,12 +1662,7 @@ router.delete("/schedules/:id", authenticateToken, async (req, res) => { // 봇 목록 조회 router.get("/bots", authenticateToken, async (req, res) => { try { - const [bots] = await pool.query( - `SELECT b.*, c.channel_id, c.channel_name, c.rss_url, c.include_shorts - FROM bots b - LEFT JOIN bot_youtube_config c ON b.id = c.bot_id - ORDER BY b.created_at DESC` - ); + const [bots] = await pool.query(`SELECT * FROM bots ORDER BY id ASC`); res.json(bots); } catch (error) { console.error("봇 목록 조회 오류:", error);