diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index ae4491bbb8..3262a52164 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -74,6 +74,8 @@ App::post('/v1/projects') ->inject('cache') ->inject('pools') ->action(function (string $projectId, string $name, string $teamId, string $description, string $logo, string $url, string $legalName, string $legalCountry, string $legalState, string $legalCity, string $legalAddress, string $legalTaxId, Response $response, Database $dbForConsole, Cache $cache, Group $pools) { + + $team = $dbForConsole->getDocument('teams', $teamId); if ($team->isEmpty()) { diff --git a/src/Appwrite/Resque/Worker.php b/src/Appwrite/Resque/Worker.php index e504cae679..618b5817de 100644 --- a/src/Appwrite/Resque/Worker.php +++ b/src/Appwrite/Resque/Worker.php @@ -217,6 +217,7 @@ abstract class Worker return $database; } + /** * Get Cache * @return Cache