fixed another issue highlighted by tests

This commit is contained in:
pushrbx 2024-01-31 19:31:15 +00:00
parent b33ce14589
commit 7ba31ce91f
2 changed files with 7 additions and 0 deletions

View File

@ -75,4 +75,9 @@ class Profile extends JikanApiSearchableModel
"username" "username"
]; ];
} }
public function getTitleAttributeName(): string
{
return "username";
}
} }

View File

@ -40,6 +40,8 @@ trait ScoutFlush
"filter_by" => "mal_id:>0", "filter_by" => "mal_id:>0",
"batch_size" => 500 "batch_size" => 500
]); ]);
$typeSenseClient->deleteCollection($modelInstance->searchableAs());
} }
} }
} }