完善API获取

This commit is contained in:
tangly1024
2022-05-09 14:46:09 +08:00
parent adac140892
commit 37465ca43e
5 changed files with 17 additions and 25 deletions

View File

@@ -70,7 +70,7 @@ export async function getNotionPageData({ pageId, from }) {
const cacheKey = 'page_block_' + pageId
const data = await getDataFromCache(cacheKey)
if (data && data.pageIds?.length > 0) {
console.log('[请求缓存]:', `from:${from}`, `root-page-id:${pageId}`)
console.log('[命中缓存]:', `from:${from}`, `root-page-id:${pageId}`)
return data
}
const pageRecordMap = await getPageRecordMapByNotionAPI({ pageId, from })