From 7ba31ce91f346987e5934c8182044b1a351204e0 Mon Sep 17 00:00:00 2001 From: pushrbx Date: Wed, 31 Jan 2024 19:31:15 +0000 Subject: [PATCH] fixed another issue highlighted by tests --- app/Profile.php | 5 +++++ app/Testing/ScoutFlush.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/app/Profile.php b/app/Profile.php index bfc26fc..9cfd99f 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -75,4 +75,9 @@ class Profile extends JikanApiSearchableModel "username" ]; } + + public function getTitleAttributeName(): string + { + return "username"; + } } diff --git a/app/Testing/ScoutFlush.php b/app/Testing/ScoutFlush.php index ccfcc56..137c12f 100644 --- a/app/Testing/ScoutFlush.php +++ b/app/Testing/ScoutFlush.php @@ -40,6 +40,8 @@ trait ScoutFlush "filter_by" => "mal_id:>0", "batch_size" => 500 ]); + + $typeSenseClient->deleteCollection($modelInstance->searchableAs()); } } }