From c66b9cde1381ca9f9527258e3a0deef6cbc06386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Tue, 27 May 2025 22:16:15 +0800 Subject: [PATCH] Fix stupid bugs that prevent the code being deployed. --- components/app/windows/news.vue | 2 +- server/scrape/line_today.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index 85b1ea8..b49456e 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -70,7 +70,7 @@ const pullWord = async () => { if (words.length === 0) { const req = await fetch("/api/contentcheck/kidunfriendlycontent"); const res = await req.json(); - pullWord = res.words; + words = res.words; return res.words } return pullWord; diff --git a/server/scrape/line_today.ts b/server/scrape/line_today.ts index e723719..e0873f3 100644 --- a/server/scrape/line_today.ts +++ b/server/scrape/line_today.ts @@ -78,7 +78,7 @@ async function lineToday(slug: string) { } else { author = authorInfo; } - const orgAuthorDateData = html("span.entityPublishInfo-meta-info").text() + const orgAuthorDateData = html("span.entityPublishInfo-meta-info").text(); const updateMatch = orgAuthorDateData.match(/更新於\s*([^•]+)/); const publishMatch = orgAuthorDateData.match(/發布於\s*(.+)$/); let updatedAt: Date | null = null;