Add the brief_description for Book and Author.

This commit is contained in:
2025-04-28 12:08:00 +03:00
parent 6021d3e8c8
commit af11f13942
6 changed files with 67 additions and 0 deletions
@@ -63,6 +63,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Index do
page =
Metadata.search_author!(
search_query,
load: [:brief_description],
query: [sort_input: sort_by],
page: page_params ++ [count: true],
actor: socket.assigns.current_user
@@ -189,6 +189,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.Index do
"title" ->
Metadata.search_book!(
search_query,
load: [:brief_description],
query: [sort_input: sort_by],
page: page_params ++ [count: true],
actor: actor
@@ -198,6 +199,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.Index do
Metadata.search_book_by_bid!(
type,
search_query,
load: [:brief_description],
query: [sort_input: sort_by],
page: page_params ++ [count: true],
actor: actor