Skip to content

Commit 32de9ff

Browse files
Merge #361
361: Use prefixed_name in index swap r=norkunas a=thislg Fixes #360 Co-authored-by: Thibaut Selingue <[email protected]>
2 parents a4797cf + a2f7029 commit 32de9ff

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)