fix: subscriptions

This commit is contained in:
Andras Bacsai committed 2023-08-30 18:23:55 +02:00
1 parent 5b6667c461
commit 923af88336
20 files changed
+147 -69

No files matched your search

+2 -2
View File
@@ -32,7 +32,7 @@ class User extends Authenticatable implements SendsEmail
$team = [
'name' => $user->name . "'s Team",
'personal_team' => true,
'boarding' => true
'show_boarding' => true
];
if ($user->id === 0) {
$team['id'] = 0;
@@ -94,7 +94,7 @@ class User extends Authenticatable implements SendsEmail
public function currentTeam()
{
return session('currentTeam');
return Team::find(session('currentTeam')->id);
}
public function otherTeams()