Skip to content

Commit

Permalink
fix: Don't preserve keys when filtering out items to be skipped from …
Browse files Browse the repository at this point in the history
…indexing
  • Loading branch information
johnnynotsolucky committed Dec 4, 2024
1 parent e1c9467 commit 36217f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function sync(Index $index, null|string|int $identifier): Generator
$size = count($chunk);

// Remove any falsy values from the chunk of data.
$chunk = array_filter($chunk);
$chunk = array_values(array_filter($chunk));
$this->meiliClient
->index($index->indexId)
->addDocuments($chunk, $index->getSettings()->primaryKey);
Expand Down

0 comments on commit 36217f0

Please sign in to comment.