mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Add back the user/opponent preload
This commit is contained in:
parent
66c2bf2817
commit
4745a2cce1
@ -12,6 +12,7 @@ defmodule ChessWeb.GameController do
|
|||||||
|> current_user()
|
|> current_user()
|
||||||
|> Game.for_user()
|
|> Game.for_user()
|
||||||
|> Game.ordered
|
|> Game.ordered
|
||||||
|
|> preload([:user, :opponent])
|
||||||
|> Repo.all
|
|> Repo.all
|
||||||
|
|
||||||
render(conn, "index.html", games: games, changeset: changeset)
|
render(conn, "index.html", games: games, changeset: changeset)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user