mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-05 07:20:58 +08:00
meilisearch improt think about enabled
This commit is contained in:
@@ -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])) {
|
||||
|
||||
Reference in New Issue
Block a user