Skip to content

Commit f1da2f5

Browse files
committed
Fix token issues when seeding tenants
1 parent 4a202ab commit f1da2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/app/Services/UserService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function create(array $userData, ?int $companyId = null): User {
1919
/** @var \Tymon\JWTAuth\JWTGuard $guard */
2020
$guard = auth('api');
2121
$payload = $guard->payload();
22-
$companyId ??= $payload->get('companyId');
22+
$companyId = $payload->get('companyId');
2323

2424
/** @var User $user */
2525
$user = $this->buildQuery()->newQuery()->create([

0 commit comments

Comments
 (0)