From 490497f9ac7719dd64b52806854582d1bcca5c14 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 26 Apr 2023 11:50:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=20hexo\matery=E4=B8=BB=E9=A2=98=E5=8D=9A?= =?UTF-8?q?=E5=AE=A2=E5=88=97=E8=A1=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/notion/getNotionData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 55c15678..e723a83d 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -242,7 +242,7 @@ async function getDataBaseInfoByNotionAPI({ pageId, from }) { let postCount = 0 // 查找所有的Post和Page const allPages = collectionData.filter(post => { - if (post.type === BLOG.NOTION_PROPERTY_NAME.type_post && post.status === BLOG.NOTION_PROPERTY_NAME.status_publish) { + if (post.type === 'Post' && post.status === 'Published') { postCount++ } return post && post?.slug &&