Skip to content

Commit

Permalink
TASK: Cleanup and add code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Sep 30, 2024
1 parent 75b34d0 commit a2b9e63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function onBeforeEvent(EventInterface $eventInstance, EventEnvelope $even
if (
$eventInstance instanceof EmbedsWorkspaceName
&& $eventInstance instanceof EmbedsContentStreamId
// Safeguard for temporary content streams beeing created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream.
// Safeguard for temporary content streams created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream.
&& !$this->contentRepository->getWorkspaceFinder()->findOneByCurrentContentStreamId($eventInstance->getContentStreamId())?->workspaceName->equals($eventInstance->getWorkspaceName())
) {
return;
Expand All @@ -68,7 +68,7 @@ public function onAfterEvent(EventInterface $eventInstance, EventEnvelope $event
if (
$eventInstance instanceof EmbedsWorkspaceName
&& $eventInstance instanceof EmbedsContentStreamId
// Safeguard for temporary content streams beeing created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream.
// Safeguard for temporary content streams created during partial publish -> We want to skip these events, because their workspace doesn't match current contentstream.
&& !$this->contentRepository->getWorkspaceFinder()->findOneByCurrentContentStreamId($eventInstance->getContentStreamId())?->workspaceName->equals($eventInstance->getWorkspaceName())
) {
return;
Expand Down

0 comments on commit a2b9e63

Please sign in to comment.