fix team res

This commit is contained in:
Damodar Lohani 2024-09-04 23:48:51 +00:00
parent e0a30fd25a
commit b263ed7ce6

View file

@ -1759,7 +1759,7 @@ App::setResource('plan', function (array $plan = []) {
App::setResource('team', function (Document $project, Database $dbForConsole, App $utopia, Request $request) {
$teamInternalId = '';
if ($project->getId() !== 'console') {
$teamInternalId = $project->getAttribute('teamInternalId');
$teamInternalId = $project->getAttribute('teamInternalId', '');
} else {
$route = $utopia->match($request);
$path = $route->getPath();