Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit 2c73d99

Browse files
committed
Fix small issue
1 parent 57eeb94 commit 2c73d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AlgoliaEloquentTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function _reindex($safe = true)
4242

4343
if ($safe) {
4444
for ($i = 0; $i < count($indices); $i++) {
45-
$modelHelper->algolia->moveIndex($indicesTmp[$i]->indexName, $indices[0]->indexName);
45+
$modelHelper->algolia->moveIndex($indicesTmp[$i]->indexName, $indices[$i]->indexName);
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)