fix: handle empty items and no yesterday articles

This commit is contained in:
2025-06-04 15:13:41 +09:00
committed by Satsuki Akiba (aider)
parent 8490e383ac
commit ebe6b6d250

View File

@ -74,7 +74,7 @@ const processFeedUrl = async (url: string) => {
if (yesterdayItems.length === 0) {
console.log(`昨日の記事が見つかりません: ${feedTitle}`);
continue;
return;
}
// ポッドキャスト原稿生成
@ -99,7 +99,7 @@ const processFeedUrl = async (url: string) => {
const firstItem = yesterdayItems[0];
if (!firstItem) {
console.warn("アイテムが空です");
continue;
return;
}
const pub = new Date(firstItem.pubDate || "");