correct association name

This commit is contained in:
byte[] 2019-11-18 13:11:32 -05:00
parent d0f53463a2
commit 2f03254d79

View file

@ -12,7 +12,7 @@ defmodule PhilomenaWeb.TopicController do
topic = topic =
Topic Topic
|> where(forum_id: ^forum.id, slug: ^slug, hidden_from_users: false) |> where(forum_id: ^forum.id, slug: ^slug, hidden_from_users: false)
|> preload([:user, poll: :option]) |> preload([:user, poll: :options])
|> Repo.one() |> Repo.one()
conn = conn |> assign(:topic, topic) conn = conn |> assign(:topic, topic)