Skip to content

Commit a2f7029

Browse files
committed
fix(import): Use prefixed_name in index swap
1 parent a4797cf commit a2f7029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/MeilisearchImportCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private function swapIndices(Collection $indexes, string $prefix, OutputInterfac
241241
foreach ($indexes as $index) {
242242
$tempIndex = $index;
243243
$tempIndex['name'] = $prefix.$tempIndex['prefixed_name'];
244-
$pair = [$tempIndex['name'], $index['name']];
244+
$pair = [$tempIndex['name'], $index['prefixed_name']];
245245

246246
// Indexes must be declared only once during a swap
247247
if (!\in_array($pair, $indexPairs, true)) {

0 commit comments

Comments
 (0)