Skip to content

Commit 55a752e

Browse files
committed
fix: properly reference related record in linkage
1 parent 57414bd commit 55a752e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ash_json_api/serializer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ defmodule AshJsonApi.Serializer do
597597
:data,
598598
Enum.map(
599599
linkage,
600-
&(%{id: AshJsonApi.Resource.encode_primary_key(record), type: type}
600+
&(%{id: AshJsonApi.Resource.encode_primary_key(&1), type: type}
601601
|> add_relationship_meta(&1, record, relationship))
602602
)
603603
)

0 commit comments

Comments
 (0)