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 &&