Skip to content

Commit

Permalink
fix: transformer on related data
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasalexandre9 committed Nov 5, 2024
1 parent ccfc4ef commit 8d14ba9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function processIncludedResources(Scope $scope, $data)
$includedData[$include] = [
'data' => [
'type' => $item->getResourceKey(),
'id' => Id::packId(AgentFactory::get('datasource')->getCollection($this->name), $data),
'id' => Id::packId(AgentFactory::get('datasource')->getCollection($item->getResourceKey()), $item->getData()),
'attributes' => $item->getData(),
],
];
Expand Down

0 comments on commit 8d14ba9

Please sign in to comment.