Skip to content

Commit 03a6c6e

Browse files
committed
BUGFIX: Correctly handle realtime indexing of user workspaces
Indexing jobs created through realtime indexing of changes to a user workspace caused an exception, since no workspace was set in the context. This change will use the node's workspace in those cases. Fixes #11
1 parent 6a04335 commit 03a6c6e

File tree

1 file changed

+1
-1
lines changed
  • Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer

1 file changed

+1
-1
lines changed

Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/IndexingJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function execute(QueueInterface $queue, Message $message)
9595
/** @var NodeData $nodeData */
9696
$nodeData = $this->nodeDataRepository->findByIdentifier($node['nodeIdentifier']);
9797
$context = $this->contextFactory->create([
98-
'workspaceName' => $this->targetWorkspaceName,
98+
'workspaceName' => $this->targetWorkspaceName ?: $nodeData->getWorkspace()->getName(),
9999
'invisibleContentShown' => true,
100100
'inaccessibleContentShown' => false,
101101
'dimensions' => $node['dimensions']

0 commit comments

Comments
 (0)