Fix db connection
This commit is contained in:
parent
f1d75dc805
commit
a0be399f0c
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ App::post('/v1/projects')
|
||||||
/** @var Utopia\Database\Database $dbForInternal */
|
/** @var Utopia\Database\Database $dbForInternal */
|
||||||
/** @var Utopia\Database\Database $dbForExternal */
|
/** @var Utopia\Database\Database $dbForExternal */
|
||||||
|
|
||||||
$team = $dbForInternal->getDocument('teams', $teamId);
|
$team = $dbForConsole->getDocument('teams', $teamId);
|
||||||
|
|
||||||
if ($team->isEmpty()) {
|
if ($team->isEmpty()) {
|
||||||
throw new Exception('Team not found', 404);
|
throw new Exception('Team not found', 404);
|
||||||
|
|
Loading…
Reference in a new issue