Skip to content

Commit

Permalink
Sometime their is an event with a link but an empty record
Browse files Browse the repository at this point in the history
Vinceveve committed Aug 23, 2017

Verified

This commit was signed with the committer’s verified signature. The key has expired.
WoozyMasta Maxim Levchenko
1 parent d081408 commit 96b6ee2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Rxnet/EventStore/EventStore.php
Original file line number Diff line number Diff line change
@@ -413,6 +413,10 @@ public function persistentSubscription($streamID, $group)
function (PersistentSubscriptionStreamEventAppeared $eventAppeared) use ($correlationID, $group) {
$record = $eventAppeared->getEvent()->getEvent();
$link = $eventAppeared->getEvent()->getLink();
if(!$record) {
// TODO ugly patch investigate why
$record = $link;
}
/* @var \Rxnet\EventStore\Data\EventRecord $record */

return new AcknowledgeableEventRecord(

0 comments on commit 96b6ee2

Please sign in to comment.