meilisearch improt think about enabled

This commit is contained in:
lgb
2024-06-24 14:51:47 +08:00
parent 678f74a17a
commit b0fb0513ea
2 changed files with 4 additions and 1 deletions

View File

@@ -96,6 +96,9 @@ class MeiliSearchRepository extends BaseRepository
public function import()
{
if (!$this->isEnabled()) {
return 0;
}
$client = $this->getClient();
$stats = $client->stats();
if (isset($stats['indexes'][self::INDEX_NAME])) {