Skip to content

Commit

Permalink
BUGFIX: Fix usage of value object ContentStreamId in `ContentStream…
Browse files Browse the repository at this point in the history
…CommandController`

Relates: #4156
  • Loading branch information
ahaeslich committed Apr 16, 2023
1 parent 2ea8da6 commit 801572e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public function pruneCommand(string $contentRepositoryIdentifier = 'default', bo

$unusedContentStreams = $contentStreamPruner->prune($removeTemporary);
$unusedContentStreamsPresent = false;
foreach ($unusedContentStreams as $contentStream) {
$this->outputFormatted('Removed %s', [$contentStream]);
foreach ($unusedContentStreams as $contentStreamId) {
$this->outputFormatted('Removed %s', [$contentStreamId->value]);
$unusedContentStreamsPresent = true;
}
if (!$unusedContentStreamsPresent) {
Expand All @@ -151,8 +151,8 @@ public function pruneRemovedFromEventStreamCommand(string $contentRepositoryIden

$unusedContentStreams = $contentStreamPruner->pruneRemovedFromEventStream();
$unusedContentStreamsPresent = false;
foreach ($unusedContentStreams as $contentStream) {
$this->outputFormatted('Removed events for %s', [$contentStream]);
foreach ($unusedContentStreams as $contentStreamId) {
$this->outputFormatted('Removed events for %s', [$contentStreamId->value]);
$unusedContentStreamsPresent = true;
}
if (!$unusedContentStreamsPresent) {
Expand Down

0 comments on commit 801572e

Please sign in to comment.