mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-10 21:53:34 +08:00
Fixed bad collection/array mixing causing error on seed
This commit is contained in:
@ -3,6 +3,7 @@
|
|||||||
use BookStack\Entities\EntityProvider;
|
use BookStack\Entities\EntityProvider;
|
||||||
use BookStack\Entities\Models\Entity;
|
use BookStack\Entities\Models\Entity;
|
||||||
use BookStack\Entities\Models\SearchTerm;
|
use BookStack\Entities\Models\SearchTerm;
|
||||||
|
use Illuminate\Support\Collection;
|
||||||
|
|
||||||
class SearchIndex
|
class SearchIndex
|
||||||
{
|
{
|
||||||
@ -75,8 +76,8 @@ class SearchIndex
|
|||||||
$entityModel->newQuery()
|
$entityModel->newQuery()
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->select($selectFields)
|
->select($selectFields)
|
||||||
->chunk(1000, function ($entities) {
|
->chunk(1000, function (Collection $entities) {
|
||||||
$this->indexEntities($entities);
|
$this->indexEntities($entities->all());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user