Skip to content

Commit 85c0a5a

Browse files
Fix related key in restifyjsSerialize (#620)
Fixed an error referencing the value of the key related array in the restifyjsSerialize function from static::collectFilters('matches') to static::collectRelated()
1 parent b15e3f6 commit 85c0a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Repositories/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ public function restifyjsSerialize(RestifyRequest $request): array
11261126
{
11271127
return [
11281128
'uriKey' => static::uriKey(),
1129-
'related' => static::collectFilters('matches'),
1129+
'related' => static::collectRelated(),
11301130
'sort' => static::collectFilters('sortables'),
11311131
'match' => static::collectFilters('matches'),
11321132
'searchables' => static::collectFilters('searchables'),

0 commit comments

Comments
 (0)