Skip to content

Commit 1535e53

Browse files
authored
Update SetInitialEventHttpMiddleware.php
1 parent 831d946 commit 1535e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SetInitialEventHttpMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function handle(Request $request, Closure $next): mixed
2020

2121
if (!$existingEvent || empty($mc['preserve_existing_event'])) {
2222
$initialEvent = InitialEventDTO::fromScratch(
23-
userId: $user ? $user->getId() : "",
23+
userId: $user ? $user->getAuthIdentifier() : "",
2424
userType: $user ? $mc['default_user_type'] : "",
2525
app: !empty($mc['app_code_header']) ? $request->header($mc['app_code_header'], '') : ($config['app_code'] ?? ''),
2626
entrypoint: $this->extractEntrypoint($request),

0 commit comments

Comments
 (0)