mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-16 15:09:28 +00:00
fix-build
This commit is contained in:
@@ -220,13 +220,14 @@ async function getPageRecordMapByNotionAPI({ 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) {
|
||||
postCount++
|
||||
}
|
||||
return post &&
|
||||
(!post?.slug?.startsWith('http')) &&
|
||||
(post?.status === BLOG.NOTION_PROPERTY_NAME.status_publish || post?.status === BLOG.NOTION_PROPERTY_NAME.status_invisible)
|
||||
return post && post?.slug &&
|
||||
(!post?.slug?.startsWith('http')) &&
|
||||
(post?.status === BLOG.NOTION_PROPERTY_NAME.status_publish || post?.status === BLOG.NOTION_PROPERTY_NAME.status_invisible)
|
||||
})
|
||||
|
||||
// Sort by date
|
||||
|
||||
Reference in New Issue
Block a user