actually actually fix it

This commit is contained in:
byte[] 2019-10-04 19:18:43 -04:00
parent 0a8c2d5e30
commit 5f56710459

View file

@ -63,7 +63,7 @@ defmodule PhilomenaWeb.ActivityController do
featured_image = featured_image =
Image Image
|> join(:inner, [i], f in Feature, on: [id: i.id]) |> join(:inner, [i], f in Feature, on: [image_id: i.id])
|> order_by([i, f], desc: f.created_at) |> order_by([i, f], desc: f.created_at)
|> limit(1) |> limit(1)
|> Repo.one() |> Repo.one()