From 878038416485c9db278302682ec9369b6db29644 Mon Sep 17 00:00:00 2001 From: caadiq Date: Sat, 10 Jan 2026 18:26:43 +0900 Subject: [PATCH] =?UTF-8?q?fix(x-bot):=20=EC=9C=A0=ED=8A=9C=EB=B8=8C=20?= =?UTF-8?q?=EC=9D=BC=EC=A0=95=EC=97=90=20=EC=B1=84=EB=84=90=EB=AA=85(sourc?= =?UTF-8?q?e=5Fname)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - createScheduleFromYoutube에서 video.channelTitle을 source_name에 저장 - Meilisearch 동기화 시에도 source_name 포함 --- backend/services/x-bot.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/backend/services/x-bot.js b/backend/services/x-bot.js index af6ed33..5b9edba 100644 --- a/backend/services/x-bot.js +++ b/backend/services/x-bot.js @@ -394,11 +394,18 @@ async function createScheduleFromYoutube(video) { const date = formatDate(kstDate); const time = formatTime(kstDate); - // 일정 생성 + // 일정 생성 (source_name에 채널명 저장) const [result] = await pool.query( `INSERT INTO schedules (title, date, time, category_id, source_url, source_name) - VALUES (?, ?, ?, ?, ?, NULL)`, - [video.title, date, time, YOUTUBE_CATEGORY_ID, video.videoUrl] + VALUES (?, ?, ?, ?, ?, ?)`, + [ + video.title, + date, + time, + YOUTUBE_CATEGORY_ID, + video.videoUrl, + video.channelTitle || null, + ] ); const scheduleId = result.insertId; @@ -418,7 +425,7 @@ async function createScheduleFromYoutube(video) { category_id: YOUTUBE_CATEGORY_ID, category_name: categoryInfo[0]?.name || "", category_color: categoryInfo[0]?.color || "", - source_name: null, + source_name: video.channelTitle || null, source_url: video.videoUrl, members: [], });