Skip to content

Commit

Permalink
5222 - use WorkspaceName::transliterateFromString
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Aug 26, 2024
1 parent 7bba4ee commit 8be2760
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ public function migrateMetaDataToWorkspaceName(\Closure $outputFn): void

// ... and update the event
// the payload is only used for rebasing where we override the workspace either way:
$eventMetaData['commandPayload']['workspaceName'] = WorkspaceName::fromString(
'missing-' . \mb_substr($eventMetaData['commandPayload']['contentStreamId'] ?? '', 0, WorkspaceName::MAX_LENGTH - 8)
$eventMetaData['commandPayload']['workspaceName'] = WorkspaceName::transliterateFromString(
'missing-' . ($eventMetaData['commandPayload']['contentStreamId'] ?? '')
)->value;
unset($eventMetaData['commandPayload']['contentStreamId']);

Expand Down

0 comments on commit 8be2760

Please sign in to comment.