diff --git a/lib/notion/getNotionData.js b/lib/notion/getNotionData.js index 118ed16b..0b2d5ba1 100644 --- a/lib/notion/getNotionData.js +++ b/lib/notion/getNotionData.js @@ -167,7 +167,7 @@ function getAllCategories({ allPosts, categoryOptions, sliceCount = 0 }) { * @param from * @returns {Promise<{title,description,pageCover}>} */ -function getBlogInfo(collection, block) { +function getBlogInfo({ collection, block }) { const title = collection?.name?.[0][0] || BLOG.TITLE const description = collection?.description?.[0][0] || BLOG.DESCRIPTION const pageCover = mapCoverUrl(collection?.cover, block)