Fixed bad collection/array mixing causing error on seed

This commit is contained in:
Dan Brown 2020-11-28 16:42:12 +00:00
parent d56e7e7c79
commit bf8716bb22
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -3,6 +3,7 @@
use BookStack\Entities\EntityProvider;
use BookStack\Entities\Models\Entity;
use BookStack\Entities\Models\SearchTerm;
use Illuminate\Support\Collection;
class SearchIndex
{
@ -75,8 +76,8 @@ class SearchIndex
$entityModel->newQuery()
->withTrashed()
->select($selectFields)
->chunk(1000, function ($entities) {
$this->indexEntities($entities);
->chunk(1000, function (Collection $entities) {
$this->indexEntities($entities->all());
});
}
}