mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 07:05:36 +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