修复not await

master
落雨楓 2 years ago
parent 6e0a21d84a
commit 74e8f9c7b0

@ -161,7 +161,7 @@ class EmbeddingSearchService:
if self.collection_id != self.title_index.collection_id:
async with PageIndexHelper(self.dbs, self.title_index.collection_id) as old_page_index:
await old_page_index.init_table()
old_page_index.remove_by_page_id(self.page_id)
await old_page_index.remove_by_page_id(self.page_id)
self.title_index.collection_id = self.collection_id
await self.title_index_helper.update(self.title_index)

Loading…
Cancel
Save