mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
feat(algolia): add data deletion functionality and execute in index.js
- Add `checkDataFromAlgolia` function to identify and delete unused data - Implement `deletePostDataFromAlgolia` helper function - Execute Algolia data check during homepage generation - Handle password-protected and draft pages deletion
This commit is contained in:
@@ -60,7 +60,7 @@ const deletePostDataFromAlgolia = async post => {
|
||||
.deleteObject(post.id)
|
||||
.wait()
|
||||
.then(r => {
|
||||
console.log('Algolia索引更新', r)
|
||||
console.log('Algolia索引删除成功', r)
|
||||
})
|
||||
.catch(err => {
|
||||
console.log('Algolia异常', err)
|
||||
|
||||
Reference in New Issue
Block a user