mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Add sequences to BookDetail
This commit is contained in:
@@ -24,8 +24,8 @@ SELECT ARRAY(
|
||||
|
||||
class BookTGRMSearchService(TRGMSearchService):
|
||||
MODEL_CLASS = BookDB
|
||||
SELECT_RELATED = ["source"]
|
||||
PREFETCH_RELATED = ["authors", "translators", "annotations"]
|
||||
PREFETCH_RELATED = ["source"]
|
||||
SELECT_RELATED = ["authors", "translators", "annotations"]
|
||||
GET_OBJECT_IDS_QUERY = GET_OBJECT_IDS_QUERY
|
||||
|
||||
|
||||
@@ -95,8 +95,8 @@ class GetRandomBookService(GetRandomService):
|
||||
|
||||
class BookMeiliSearchService(MeiliSearchService):
|
||||
MODEL_CLASS = BookDB
|
||||
SELECT_RELATED = ["source"]
|
||||
PREFETCH_RELATED = ["authors", "translators", "annotations"]
|
||||
PREFETCH_RELATED = ["source"]
|
||||
SELECT_RELATED = ["authors", "translators", "annotations"]
|
||||
|
||||
MS_INDEX_NAME = "books"
|
||||
MS_INDEX_LANG_KEY = "lang"
|
||||
|
||||
Reference in New Issue
Block a user