mroe preloads

This commit is contained in:
byte[] 2019-12-03 23:20:39 -05:00
parent 6e4865bdf5
commit 86e105010f

View file

@ -14,7 +14,7 @@ defmodule PhilomenaWeb.Image.ReportingController do
dupe_reports =
DuplicateReport
|> preload([image: :tags, duplicate_of_image: :tags])
|> preload(image: [:user, :tags], duplicate_of_image: [:user, :tags])
|> where([d], d.image_id == ^image.id or d.duplicate_of_image_id == ^image.id)
|> Repo.all()