From 513310839aa069ff642665a90b633f35b0f25dad Mon Sep 17 00:00:00 2001 From: eldadfux Date: Fri, 23 Aug 2019 00:06:50 +0300 Subject: [PATCH] Removed old project clients --- app/controllers/projects.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/controllers/projects.php b/app/controllers/projects.php index 279e4b1e2..c4a5f672e 100644 --- a/app/controllers/projects.php +++ b/app/controllers/projects.php @@ -229,7 +229,6 @@ $utopia->post('/v1/projects') ->param('description', '', function () {return new Text(255);}, 'Project description', true) ->param('logo', '', function () {return new Text(1024);}, 'Project logo', true) ->param('url', '', function () {return new URL();}, 'Project URL', true) - ->param('clients', [], function () {return new ArrayList(new URL());}, 'Project client domains', true) ->param('legalName', '', function () {return new Text(256);}, 'Project Legal Name', true) ->param('legalCountry', '', function () {return new Text(256);}, 'Project Legal Country', true) ->param('legalState', '', function () {return new Text(256);}, 'Project Legal State', true) @@ -237,7 +236,7 @@ $utopia->post('/v1/projects') ->param('legalAddress', '', function () {return new Text(256);}, 'Project Legal Address', true) ->param('legalTaxId', '', function () {return new Text(256);}, 'Project Legal Tax ID', true) ->action( - function($name, $teamId, $description, $logo, $url, $clients, $legalName, $legalCountry, $legalState, $legalCity, $legalAddress, $legalTaxId) use ($response, $user, $consoleDB, $projectDB) + function($name, $teamId, $description, $logo, $url, $legalName, $legalCountry, $legalState, $legalCity, $legalAddress, $legalTaxId) use ($response, $user, $consoleDB, $projectDB) { $team = $projectDB->getDocument($teamId); @@ -256,7 +255,6 @@ $utopia->post('/v1/projects') 'description' => $description, 'logo' => $logo, 'url' => $url, - 'clients' => $clients, 'legalName' => $legalName, 'legalCountry' => $legalCountry, 'legalState' => $legalState, @@ -291,7 +289,6 @@ $utopia->patch('/v1/projects/:projectId') ->param('description', '', function () {return new Text(255);}, 'Project description', true) ->param('logo', '', function () {return new Text(1024);}, 'Project logo', true) ->param('url', '', function () {return new URL();}, 'Project URL', true) - ->param('clients', [], function () {return new ArrayList(new URL());}, 'Project client domains', true) ->param('legalName', '', function () {return new Text(256);}, 'Project Legal Name', true) ->param('legalCountry', '', function () {return new Text(256);}, 'Project Legal Country', true) ->param('legalState', '', function () {return new Text(256);}, 'Project Legal State', true) @@ -299,7 +296,7 @@ $utopia->patch('/v1/projects/:projectId') ->param('legalAddress', '', function () {return new Text(256);}, 'Project Legal Address', true) ->param('legalTaxId', '', function () {return new Text(256);}, 'Project Legal Tax ID', true) ->action( - function($projectId, $name, $description, $logo, $url, $clients, $legalName, $legalCountry, $legalState, $legalCity, $legalAddress, $legalTaxId) use ($response, $consoleDB) + function($projectId, $name, $description, $logo, $url, $legalName, $legalCountry, $legalState, $legalCity, $legalAddress, $legalTaxId) use ($response, $consoleDB) { $project = $consoleDB->getDocument($projectId); @@ -312,7 +309,6 @@ $utopia->patch('/v1/projects/:projectId') 'description' => $description, 'logo' => $logo, 'url' => $url, - 'clients' => $clients, 'legalName' => $legalName, 'legalCountry' => $legalCountry, 'legalState' => $legalState,