Skip to content

Commit

Permalink
Fix related key in restifyjsSerialize (#620)
Browse files Browse the repository at this point in the history
Fixed an error referencing the value of the key related array in the restifyjsSerialize function from static::collectFilters('matches') to static::collectRelated()
  • Loading branch information
rizkyseptiawan authored Jan 12, 2025
1 parent b15e3f6 commit 85c0a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repositories/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1126,7 +1126,7 @@ public function restifyjsSerialize(RestifyRequest $request): array
{
return [
'uriKey' => static::uriKey(),
'related' => static::collectFilters('matches'),
'related' => static::collectRelated(),
'sort' => static::collectFilters('sortables'),
'match' => static::collectFilters('matches'),
'searchables' => static::collectFilters('searchables'),
Expand Down

0 comments on commit 85c0a5a

Please sign in to comment.