mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +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
|
||||
|> where(forum_id: ^forum.id, slug: ^slug, hidden_from_users: false)
|
||||
|> preload([:user, poll: :option])
|
||||
|> preload([:user, poll: :options])
|
||||
|> Repo.one()
|
||||
|
||||
conn = conn |> assign(:topic, topic)
|
||||
|
|
Loading…
Reference in a new issue