From 80927f23660c58da5be0ef8a0f57d52569762146 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Fri, 22 May 2020 22:19:04 +0300 Subject: [PATCH] Fix for #331 --- app/controllers/api/projects.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index dc1b8a27c0..9f35733bc7 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -1229,9 +1229,8 @@ $utopia->post('/v1/projects/:projectId/domains') ->param('projectId', null, function () { return new UID(); }, 'Project unique ID.') ->param('domain', null, function () { return new DomainValidator(); }, 'Domain name.') ->action( - function ($projectId) use ($request, $response, $consoleDB) { + function ($projectId, $domain) use ($request, $response, $consoleDB) { $project = $consoleDB->getDocument($projectId); - $domain = Config::getParam('domain'); if (empty($project->getId()) || Database::SYSTEM_COLLECTION_PROJECTS != $project->getCollection()) { throw new Exception('Project not found', 404);