From 9db35e2ebf05e6c2cd0f1e414e9880f753df1cf9 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 26 Mar 2023 13:10:47 +0800 Subject: [PATCH] post-list-fix --- 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 a48c7b3c..8e58a6bb 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -227,7 +227,7 @@ async function getPageRecordMapByNotionAPI({ pageId, from }) { } return post && post?.slug && (!post?.slug?.startsWith('http')) && - (post?.status === BLOG.NOTION_PROPERTY_NAME.status_publish || post?.status === BLOG.NOTION_PROPERTY_NAME.status_invisible) + (post?.status === 'Invisible' || post?.status === 'Published') }) // Sort by date