mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Fix stupid bugs that prevent the code being deployed.
This commit is contained in:
parent
cb34764c27
commit
c66b9cde13
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ const pullWord = async () => {
|
||||||
if (words.length === 0) {
|
if (words.length === 0) {
|
||||||
const req = await fetch("/api/contentcheck/kidunfriendlycontent");
|
const req = await fetch("/api/contentcheck/kidunfriendlycontent");
|
||||||
const res = await req.json();
|
const res = await req.json();
|
||||||
pullWord = res.words;
|
words = res.words;
|
||||||
return res.words
|
return res.words
|
||||||
}
|
}
|
||||||
return pullWord;
|
return pullWord;
|
||||||
|
|
|
@ -78,7 +78,7 @@ async function lineToday(slug: string) {
|
||||||
} else {
|
} else {
|
||||||
author = authorInfo;
|
author = authorInfo;
|
||||||
}
|
}
|
||||||
const orgAuthorDateData = html("span.entityPublishInfo-meta-info").text()
|
const orgAuthorDateData = html("span.entityPublishInfo-meta-info").text();
|
||||||
const updateMatch = orgAuthorDateData.match(/更新於\s*([^•]+)/);
|
const updateMatch = orgAuthorDateData.match(/更新於\s*([^•]+)/);
|
||||||
const publishMatch = orgAuthorDateData.match(/發布於\s*(.+)$/);
|
const publishMatch = orgAuthorDateData.match(/發布於\s*(.+)$/);
|
||||||
let updatedAt: Date | null = null;
|
let updatedAt: Date | null = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue