diff --git a/lib/philomena/site_notices.ex b/lib/philomena/site_notices.ex index 1a9bb5ce..b38f1fa4 100644 --- a/lib/philomena/site_notices.ex +++ b/lib/philomena/site_notices.ex @@ -21,6 +21,7 @@ defmodule Philomena.SiteNotices do now = DateTime.utc_now() SiteNotice + |> where(live: true) |> where([n], n.start_date < ^now and n.finish_date > ^now) |> order_by(desc: :start_date) |> Repo.all()