Skip to content

Commit e1bdc5a

Browse files
authored
fix insert single document (#32) (#33)
1 parent cc48b40 commit e1bdc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Meilisearch/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function search($query)
2828

2929
public function insert($document)
3030
{
31-
return $this->insertMultiple(collect($document));
31+
return $this->insertMultiple(collect([$document]));
3232
}
3333

3434
public function insertMultiple($documents)

0 commit comments

Comments
 (0)