chore: inspect commit message guidance

This commit is contained in:
Andras Bacsai committed 2026-05-27 07:14:54 +02:00
1 parent d443758b03
commit 9b996b4dc9
8 files changed
+185 -30

No files matched your search

+6
View File
@@ -104,6 +104,12 @@ class User extends Authenticatable implements SendsEmail
$new_team->forceFill($team);
$new_team->save();
if (! $user->teams()->whereKey($new_team->id)->exists()) {
$user->teams()->attach($new_team, ['role' => 'owner']);
} else {
$user->teams()->updateExistingPivot($new_team->id, ['role' => 'owner']);
}
return;
}