mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2026-03-03 15:10:51 +01:00
Fix meilisearch
This commit is contained in:
@@ -240,7 +240,7 @@ class MeiliSearchService(Generic[MODEL], BaseSearchService[MODEL, SearchQuery]):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
total: int = result["nbHits"]
|
total: int = result["estimatedTotalHits"]
|
||||||
ids: list[int] = [r["id"] for r in result["hits"][:total]]
|
ids: list[int] = [r["id"] for r in result["hits"][:total]]
|
||||||
|
|
||||||
return ids
|
return ids
|
||||||
|
|||||||
Reference in New Issue
Block a user