]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
d56e7e7
)
Fixed bad collection/array mixing causing error on seed
author
Dan Brown
<redacted>
Sat, 28 Nov 2020 16:42:12 +0000
(16:42 +0000)
committer
Dan Brown
<redacted>
Sat, 28 Nov 2020 16:42:12 +0000
(16:42 +0000)
app/Entities/Tools/SearchIndex.php
patch
|
blob
|
history
diff --git
a/app/Entities/Tools/SearchIndex.php
b/app/Entities/Tools/SearchIndex.php
index 687b9d072c1480ceac251a849f4f3a0cdf0c4908..81a5022ce33c4f5ccc87ac6902305bcac0c65fac 100644
(file)
--- a/
app/Entities/Tools/SearchIndex.php
+++ b/
app/Entities/Tools/SearchIndex.php
@@
-3,6
+3,7
@@
use BookStack\Entities\EntityProvider;
use BookStack\Entities\Models\Entity;
use BookStack\Entities\Models\SearchTerm;
use BookStack\Entities\EntityProvider;
use BookStack\Entities\Models\Entity;
use BookStack\Entities\Models\SearchTerm;
+use Illuminate\Support\Collection;
class SearchIndex
{
class SearchIndex
{
@@
-75,8
+76,8
@@
class SearchIndex
$entityModel->newQuery()
->withTrashed()
->select($selectFields)
$entityModel->newQuery()
->withTrashed()
->select($selectFields)
- ->chunk(1000, function ($entities) {
- $this->indexEntities($entities);
+ ->chunk(1000, function (
Collection
$entities) {
+ $this->indexEntities($entities
->all()
);
});
}
}
});
}
}