mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Pipe all the things
This commit is contained in:
parent
c0422693c0
commit
08786460d0
@ -20,7 +20,10 @@ defmodule ChessWeb.GameController do
|
||||
|
||||
def new(conn, _params) do
|
||||
changeset = Game.changeset(%Game{})
|
||||
opponents = get_opponents(current_user(conn))
|
||||
opponents =
|
||||
conn
|
||||
|> current_user()
|
||||
|> get_opponents()
|
||||
|
||||
render(conn, "new.html", changeset: changeset, opponents: opponents)
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user