diff --git a/app/Console/Commands/Elastic/RebuildElasticIndexes.php b/app/Console/Commands/Elastic/RebuildElasticIndexes.php index 97955308cc..add7a37c72 100644 --- a/app/Console/Commands/Elastic/RebuildElasticIndexes.php +++ b/app/Console/Commands/Elastic/RebuildElasticIndexes.php @@ -163,8 +163,7 @@ class RebuildElasticIndexes extends Command */ protected function getElasticsearchClient() { - $hosts = config('elastic.client.hosts', ['localhost:9200']); - return ClientBuilder::create()->setHosts($hosts)->build(); + return ClientBuilder::fromConfig(config('elastic.client.connections.default')); } /** diff --git a/app/DataMapper/Analytics/VerifactuLog.php b/app/DataMapper/Analytics/VerifactuLog.php new file mode 100644 index 0000000000..f50cf274ec --- /dev/null +++ b/app/DataMapper/Analytics/VerifactuLog.php @@ -0,0 +1,74 @@ +html = $html; + } + + if ($json !== null) { + $this->json = $json; + } + } +}