Skip to content

Commit f204bfe

Browse files
committed
BUGFIX: Restore a missing variable in node index CLI controller
1 parent b86c930 commit f204bfe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Command/NodeIndexCommandController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ public function buildCommand($limit = null, $update = false, $workspace = null,
173173
$workspace = 'live';
174174
}
175175

176+
$callback = function ($workspaceName, $indexedNodes, $dimensions) {
177+
if ($dimensions === []) {
178+
$this->outputLine('Workspace "' . $workspaceName . '" without dimensions done. (Indexed ' . $indexedNodes . ' nodes)');
179+
} else {
180+
$this->outputLine('Workspace "' . $workspaceName . '" and dimensions "' . json_encode($dimensions) . '" done. (Indexed ' . $indexedNodes . ' nodes)');
181+
}
182+
};
176183
if ($workspace === null) {
177184
foreach ($this->workspaceRepository->findAll() as $workspace) {
178185
$count += $this->indexWorkspace($workspace->getName(), $limit, $callback);

0 commit comments

Comments
 (0)