Skip to content

Commit

Permalink
[Update] Scout
Browse files Browse the repository at this point in the history
- Added `trackable.is_nsfw` to `UserLibrary`'s filterable attributes
  • Loading branch information
kiritokatklian committed Nov 11, 2024
1 parent aca6a71 commit cfe13b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/scout.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
\App\Models\UserLibrary::TABLE_NAME => [
'searchableAttributes' => ['trackable.original_title', 'trackable.title', 'trackable.synonym_titles', 'trackable.translations', 'trackable.synopsis', 'trackable.tagline'],
'sortableAttributes'=> ['ended_at', 'started_at', 'status', 'created_at', 'update_at'],
'filterableAttributes'=> ['id', 'user_id', 'trackable.letter', 'trackable_id', 'trackable_type', 'status', 'started_at', 'ended_at'],
'filterableAttributes'=> ['id', 'user_id', 'trackable.letter', 'trackable.is_nsfw', 'trackable_id', 'trackable_type', 'status', 'started_at', 'ended_at'],
],
\App\Models\User::TABLE_NAME => [
'searchableAttributes' => ['slug', 'username', 'biography'],
Expand Down

0 comments on commit cfe13b4

Please sign in to comment.