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