]> BookStack Code Mirror - bookstack/blobdiff - app/Console/Commands/RegenerateSearch.php
settings.php: add missing french translation
[bookstack] / app / Console / Commands / RegenerateSearch.php
index 35ecd46c0817ddac6e201f161dec73068e9085d6..1757911a7ce1226063bf91098302d74b9552b722 100644 (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();