Add the brief_description for Book and Author.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user