Skip to content

Commit

Permalink
fix insert single document (#32) (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
naabster authored Dec 18, 2023
1 parent cc48b40 commit e1bdc5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Meilisearch/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function search($query)

public function insert($document)
{
return $this->insertMultiple(collect($document));
return $this->insertMultiple(collect([$document]));
}

public function insertMultiple($documents)
Expand Down

0 comments on commit e1bdc5a

Please sign in to comment.