From 693d2e82e0ecf15e3333a05a11a181caa82aa6cd Mon Sep 17 00:00:00 2001 From: Damien Couchez Date: Thu, 18 Aug 2022 10:43:42 +0200 Subject: [PATCH] quick fixes --- src/Console/Commands/ReImportCommand.php | 2 +- src/Jobs/UpdateJob.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Commands/ReImportCommand.php b/src/Console/Commands/ReImportCommand.php index 087cd42..7cbd667 100644 --- a/src/Console/Commands/ReImportCommand.php +++ b/src/Console/Commands/ReImportCommand.php @@ -95,7 +95,7 @@ public function handle( $config->set('scout.queue', $useQueues); tap($this->output)->progressAdvance() - ->text("Replacing index {$index->getIndexName()} by index {$temporaryName}"); + ->text("Replacing index {$index} by index {$temporaryName}"); try { $client->getSettings($temporaryName); diff --git a/src/Jobs/UpdateJob.php b/src/Jobs/UpdateJob.php index 7487367..7c10a04 100644 --- a/src/Jobs/UpdateJob.php +++ b/src/Jobs/UpdateJob.php @@ -137,7 +137,7 @@ public function handle(SearchClient $client): void $requests = []; foreach ($objectsToSave as $objectToSave) { - $requests += [ + $requests[] = [ 'action' => 'addObject', 'body' => $objectToSave ];