]>
BookStack Code Mirror - bookstack/blobdiff - app/Console/Commands/RegenerateSearch.php
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added additional testing for editor switching permissions
[bookstack]
/
app
/
Console
/
Commands
/
RegenerateSearch.php
diff --git
a/app/Console/Commands/RegenerateSearch.php
b/app/Console/Commands/RegenerateSearch.php
index 62ee88fc0f10fe237b0b8d2c08663bc6de72040a..20e3fc7983f8bd7ff472758d20f3693841864ec5 100644
(file)
--- a/
app/Console/Commands/RegenerateSearch.php
+++ b/
app/Console/Commands/RegenerateSearch.php
@@
-49,7
+49,7
@@
class RegenerateSearch extends Command
DB::setDefaultConnection($this->option('database'));
}
DB::setDefaultConnection($this->option('database'));
}
- $this->searchIndex->indexAllEntities(function (Entity $model, int $processed, int $total) {
+ $this->searchIndex->indexAllEntities(function (Entity $model, int $processed, int $total)
: void
{
$this->info('Indexed ' . class_basename($model) . ' entries (' . $processed . '/' . $total . ')');
});
$this->info('Indexed ' . class_basename($model) . ' entries (' . $processed . '/' . $total . ')');
});