mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-07 23:06:42 +01:00
correct association name
This commit is contained in:
parent
d0f53463a2
commit
2f03254d79
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue