mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 07:26:46 +00:00
algolia日志
This commit is contained in:
@@ -63,11 +63,11 @@ const uploadDataToAlgolia = async(post) => {
|
||||
lastIndexDate: new Date(), // 更新索引时间
|
||||
content: truncate(getPageContentText(post, post.blockMap), 9000) // 索引9000个字节,因为api限制总请求内容上限1万个字节
|
||||
}
|
||||
console.log('更新Algolia索引', record)
|
||||
// console.log('更新Algolia索引', record)
|
||||
index.saveObject(record).wait().then(r => {
|
||||
console.log('更新成功', r)
|
||||
console.log('Algolia索引更新', r)
|
||||
}).catch(err => {
|
||||
console.log('algolia', err)
|
||||
console.log('Algolia异常', err)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user