Skip to content

Commit 6eb67c4

Browse files
Use ->index instead of ->getIndex
Co-authored-by: Clémentine Urquizar - curqui <[email protected]>
1 parent 7cee41f commit 6eb67c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/MeiliSearchCreateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7474

7575
$task = $this->searchClient->createIndex($index['name']);
7676
$this->searchClient->waitForTask($task['uid']);
77-
$indexInstance = $this->searchClient->getIndex($index['name']);
77+
$indexInstance = $this->searchClient->index($index['name']);
7878

7979
if (isset($index['settings']) && is_array($index['settings'])) {
8080
foreach ($index['settings'] as $variable => $value) {

0 commit comments

Comments
 (0)