Skip to content

Commit

Permalink
Fix support for CatchUpOptions::maximumSequenceNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Aug 11, 2023
1 parent 19af2f6 commit 64322c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Neos.ContentRepository.Core/Classes/ContentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ public function catchUpProjection(string $projectionClassName, CatchUpOptions $o
// TODO allow custom stream name per projection
$streamName = VirtualStreamName::all();
$eventStream = $this->eventStore->load($streamName);
if ($options->maximumSequenceNumber !== null) {
$eventStream = $eventStream->withMaximumSequenceNumber($options->maximumSequenceNumber);
}

$eventApplier = function (EventEnvelope $eventEnvelope) use ($projection, $catchUpHook) {
$event = $this->eventNormalizer->denormalize($eventEnvelope->event);
Expand Down

0 comments on commit 64322c8

Please sign in to comment.