mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
mroe preloads
This commit is contained in:
parent
6e4865bdf5
commit
86e105010f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue