actually fix it

This commit is contained in:
byte[] 2019-10-04 19:17:40 -04:00
parent 2359742d05
commit 0a8c2d5e30

View file

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