Skip to content

Commit

Permalink
fix: get indexer status
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Apr 9, 2024
1 parent ddc1f74 commit 73c230c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/Service/Indexer/BackgroundIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,11 @@ public function index(): IndexerStatus
*/
public function getStatus(): IndexerStatus
{
return $this->statusStore->load($this->getIndex());
return $this->statusStore->load($this->getStatusStoreKey());
}

private function getIndex(): string
private function getStatusStoreKey(): string
{
/*
* The indexer always requires the default index, as the language is
* determined via the resources to be indexed.
*/
return $this->index->name('');
return $this->index->name('') . '-' . $this->indexer->getSource();
}
}

0 comments on commit 73c230c

Please sign in to comment.