1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Made more efficiency improvements to permission system

This commit is contained in:
Dan Brown
2017-04-30 11:38:58 +01:00
parent 1859a4d356
commit 5570e858e5
6 changed files with 93 additions and 50 deletions

View File

@ -44,6 +44,7 @@ class RegenerateSearch extends Command
$connection = \DB::getDefaultConnection();
if ($this->option('database') !== null) {
\DB::setDefaultConnection($this->option('database'));
$this->searchService->setConnection(\DB::connection($this->option('database')));
}
$this->searchService->indexAllEntities();