1
0
Fork 0
mirror of synced 2024-09-28 15:31:43 +12:00

Deperecated old collection rules

This commit is contained in:
eldadfux 2019-08-23 00:00:18 +03:00
parent 67a669231e
commit b7b0c8204a
2 changed files with 2 additions and 19 deletions

View file

@ -700,15 +700,6 @@ return [
'required' => true,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Clients',
'key' => 'clients',
'type' => 'url',
'default' => '',
'required' => false,
'array' => true,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Legal Name',
@ -757,15 +748,6 @@ return [
'default' => '',
'required' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'OAuth Callback',
'key' => 'usersOauthCallback', // TODO Deprecate this
'type' => 'url',
'default' => '',
'required' => false,
'array' => false,
],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'OAuth Bitbucket AppID',

View file

@ -9,7 +9,6 @@ use Utopia\Validator\Text;
use Utopia\Validator\WhiteList;
use Utopia\Validator\Range;
use Utopia\Validator\URL;
use Utopia\Validator\Domain;
use Task\Validator\Cron;
use Database\Database;
use Database\Document;
@ -387,6 +386,8 @@ $utopia->delete('/v1/projects/:projectId')
throw new Exception('Project not found', 404);
}
// Delete all children (keys, webhooks, tasks [stop tasks?], platforms)
if(!$consoleDB->deleteDocument($projectId)) {
throw new Exception('Failed to remove project from DB', 500);
}