fix related images query

This commit is contained in:
byte[] 2020-05-28 21:04:35 -04:00
parent 5baf95f6de
commit 6ef394a024

View file

@ -54,7 +54,7 @@ defmodule PhilomenaWeb.Image.RelatedController do
ImageLoader.query( ImageLoader.query(
conn, conn,
query, query,
sorts: [%{_score: :desc}], sorts: &%{query: &1, sorts: [%{_score: :desc}]},
pagination: %{conn.assigns.image_pagination | page_number: 1} pagination: %{conn.assigns.image_pagination | page_number: 1}
) )