Skip to content

Commit db5bd3b

Browse files
committed
chore: update elixir verison, use new struct match
1 parent 5c56490 commit db5bd3b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
erlang 27.0.1
2-
elixir 1.18.4
1+
erlang 28.2
2+
elixir 1.19.3
33
pipx 1.8.0

lib/ash_json_api/plug/parser.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,12 @@ defmodule AshJsonApi.Plug.Parser do
145145
false
146146
)
147147
when data == %{} do
148+
%Plug.Conn{} = conn
148149
with {:ok, type, subtype, _params} <- extract_part_type(part_headers),
149150
{:ok, content} <- File.read(path),
150151
{:ok, data, conn} <-
151152
JSON.parse(
152-
%Plug.Conn{conn | private: Map.put(conn.private, __MODULE__, content)},
153+
%{conn | private: Map.put(conn.private, __MODULE__, content)},
153154
type,
154155
subtype,
155156
part_headers,

0 commit comments

Comments
 (0)