From a0be399f0c5926b56625dab265f62324b8570332 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 6 Jun 2021 20:54:01 +0300 Subject: [PATCH] Fix db connection --- app/controllers/api/projects.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 69e0a93314..c754c4a2d0 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -52,7 +52,7 @@ App::post('/v1/projects') /** @var Utopia\Database\Database $dbForInternal */ /** @var Utopia\Database\Database $dbForExternal */ - $team = $dbForInternal->getDocument('teams', $teamId); + $team = $dbForConsole->getDocument('teams', $teamId); if ($team->isEmpty()) { throw new Exception('Team not found', 404);