mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
refactor(修复错误的函数命名):
This commit is contained in:
@@ -70,7 +70,7 @@ export async function getSiteDataByPageId({ pageId, from }) {
|
||||
`site_data_${pageId}`,
|
||||
async (pageId, from) => {
|
||||
const pageRecordMap = await getPage(pageId, from)
|
||||
return converNotionToSiteDate(pageId, from, deepClone(pageRecordMap))
|
||||
return convertNotionToSiteDate(pageId, from, deepClone(pageRecordMap))
|
||||
},
|
||||
pageId,
|
||||
from
|
||||
@@ -141,7 +141,7 @@ const EmptyData = pageId => {
|
||||
* 这里统一对数据格式化
|
||||
* @returns {Promise<JSX.Element|null|*>}
|
||||
*/
|
||||
async function converNotionToSiteDate(pageId, from, pageRecordMap) {
|
||||
async function convertNotionToSiteDate(pageId, from, pageRecordMap) {
|
||||
if (!pageRecordMap) {
|
||||
console.error('can`t get Notion Data ; Which id is: ', pageId)
|
||||
return {}
|
||||
|
||||
Reference in New Issue
Block a user