From 73bd4a59094cf2092c9108276e5d4c7f22a270c7 Mon Sep 17 00:00:00 2001 From: Dorian Marchal Date: Mon, 11 Oct 2021 13:06:29 +0200 Subject: [PATCH] Replace put_opts with put_options in subscriptions guide (#1111) `put_opts` is deprecated since `absinthe_phoenix` v1.4.1. --- guides/subscriptions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/subscriptions.md b/guides/subscriptions.md index 86bede07fe..4df5e190a0 100644 --- a/guides/subscriptions.md +++ b/guides/subscriptions.md @@ -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}