Fix unhandled error on jetstream page with non-UUID id, fixes ST-274

This commit is contained in:
Constantin Graf
2024-06-24 13:05:26 +02:00
committed by Gregor Vostrak
parent 512089ccbd
commit f21a2d4bdd
4 changed files with 49 additions and 1 deletions

View File

@@ -116,6 +116,7 @@ class UserFactory extends Factory
->when(is_callable($callback), $callback)
->create();
$organization->owner()->associate($user);
$organization->users()->attach($user, ['role' => Role::Owner->value]);
$user->currentTeam()->associate($organization);
$user->save();