diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 5c84b6a0fc..a830827796 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -225,7 +225,7 @@ $utopia->post('/v1/account/sessions') ->setStatusCode(Response::STATUS_CODE_CREATED) ; - $response->json($session->getArrayCopy()); + $response->dynamic($session, Response::MODEL_SESSION); } ); diff --git a/app/controllers/api/database.php b/app/controllers/api/database.php index 9480048e1c..c7f2c63241 100644 --- a/app/controllers/api/database.php +++ b/app/controllers/api/database.php @@ -115,25 +115,6 @@ $utopia->get('/v1/database/collections') ->param('orderType', 'ASC', function () { return new WhiteList(['ASC', 'DESC']); }, 'Order result by ASC or DESC order.', true) ->action( function ($search, $limit, $offset, $orderType) use ($response, $projectDB) { - /*$vl = new Structure($projectDB); - - var_dump($vl->isValid(new Document([ - '$collection' => Database::SYSTEM_COLLECTION_RULES, - '$permissions' => [ - 'read' => ['*'], - 'write' => ['*'], - ], - 'label' => 'Platforms', - 'key' => 'platforms', - 'type' => 'document', - 'default' => [], - 'required' => false, - 'array' => true, - 'options' => [Database::SYSTEM_COLLECTION_PLATFORMS], - ]))); - - var_dump($vl->getDescription());*/ - $results = $projectDB->getCollection([ 'limit' => $limit, 'offset' => $offset, diff --git a/src/Appwrite/Utopia/Response/Model/Health.php b/src/Appwrite/Utopia/Response/Model/Health.php deleted file mode 100644 index 72a9acfdfd..0000000000 --- a/src/Appwrite/Utopia/Response/Model/Health.php +++ /dev/null @@ -1,33 +0,0 @@ -