Skip to content

Commit

Permalink
Replace put_opts with put_options in subscriptions guide (#1111)
Browse files Browse the repository at this point in the history
`put_opts` is deprecated since `absinthe_phoenix` v1.4.1.
  • Loading branch information
dorian-marchal authored Oct 11, 2021
1 parent 9ab7af0 commit 73bd4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ defmodule MyAppWeb.UserSocket do

def connect(params, socket) do
current_user = current_user(params)
socket = Absinthe.Phoenix.Socket.put_opts(socket, context: %{
socket = Absinthe.Phoenix.Socket.put_options(socket, context: %{
current_user: current_user
})
{:ok, socket}
Expand Down

0 comments on commit 73bd4a5

Please sign in to comment.