Skip to content

Commit

Permalink
TASK: Load contentGraph once
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Oct 24, 2024
1 parent bbf744c commit b3bafcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/ContentRepository/Service/WorkspaceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ public function getPublishableNodeInfo(WorkspaceName $workspaceName, ContentRepo
} else {
// If originDimensionSpacePoint is null, we have a change to the nodeAggregate. All nodes in the
// occupied dimensionspacepoints shall be marked as changed.
$originDimensionSpacePoints = $contentRepository
->getContentGraph($workspaceName)
$originDimensionSpacePoints = $contentGraph
->findNodeAggregateById($change->nodeAggregateId)
?->occupiedDimensionSpacePoints ?: [];
}
Expand Down

0 comments on commit b3bafcc

Please sign in to comment.