refactor + fixes

This commit is contained in:
Andras Bacsai
2023-08-30 16:01:38 +02:00
parent 6f00740f67
commit 5b6667c461
21 changed files with 48 additions and 36 deletions

View File

@@ -53,7 +53,8 @@ function showBoarding(): bool
}
function refreshSession(): void
{
session(['currentTeam' => currentTeam()]);
$team = Team::find(currentTeam()->id);
session(['currentTeam' => $team]);
}
function general_error_handler(Throwable | null $err = null, $that = null, $isJson = false, $customErrorMessage = null): mixed
{