Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Richter committed Dec 4, 2024
1 parent ea96685 commit 6537123
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/IndexCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ public function __construct(
private readonly LoggerInterface $logger
) {
parent::__construct();
$this->extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('liszt_bibliography');
$this->indexName = $this->extConf['elasticIndexName'] . '_' . date('Ymd_His');
$this->initLocales();
}

Expand Down Expand Up @@ -104,8 +106,6 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
{
$this->input = $input;
$this->output = $output;
$this->extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('liszt_bibliography');
$this->indexName = $this->extConf['elasticIndexName'] . '_' . date('Ymd_His');
$this->client = ElasticClientBuilder::getClient();
$this->zoteroApiKey = $this->extConf['zoteroApiKey'];
$this->io = GeneralUtility::makeInstance(SymfonyStyle::class, $this->input, $this->output);
Expand Down Expand Up @@ -419,7 +419,7 @@ protected function swapIndexAliases(string $tempIndexAlias): void
],
[
'remove' => [
'index' => $indexName,
'index' => $this->indexName,
'alias' => $tempIndexAlias,
],
]
Expand Down

0 comments on commit 6537123

Please sign in to comment.