This commit is contained in:
byte[] 2021-05-01 14:31:57 -04:00
parent de8001a1ff
commit a4b85471a6

View file

@ -102,6 +102,7 @@ defmodule Philomena.DuplicateReports do
new_report = new_report =
DuplicateReport DuplicateReport
|> where(duplicate_of_image_id: ^duplicate_report.image_id) |> where(duplicate_of_image_id: ^duplicate_report.image_id)
|> where(image_id: ^duplicate_report.duplicate_of_image_id)
|> limit(1) |> limit(1)
|> Repo.one() |> Repo.one()