diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 4f321e2818..8d5fe517d4 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1376,7 +1376,7 @@ App::get('/v1/account/logs') $grouped = Query::groupByType($queries); $limit = $grouped['limit'] ?? 25; $offset = $grouped['offset'] ?? 0; - + $audit = new EventAudit($dbForProject); $logs = $audit->getLogsByUser($user->getId(), $limit, $offset); diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 415a575b6a..6900e3fec6 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -343,7 +343,7 @@ App::get('/v1/databases/:databaseId/logs') $audit = new Audit($dbForProject); $resource = 'database/' . $databaseId; $logs = $audit->getLogsByResource($resource, $limit, $offset); - + $output = []; foreach ($logs as $i => &$log) { diff --git a/app/controllers/api/storage.php b/app/controllers/api/storage.php index 1e472815fc..c5adc47148 100644 --- a/app/controllers/api/storage.php +++ b/app/controllers/api/storage.php @@ -162,7 +162,7 @@ App::get('/v1/storage/buckets') ->inject('dbForProject') ->inject('usage') ->action(function (array $queries, string $search, Response $response, Database $dbForProject, Stats $usage) { - + $queries = Query::parseQueries($queries); if (!empty($search)) { diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index 1c53152eeb..af51e9f2da 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -877,7 +877,7 @@ App::get('/v1/teams/:teamId/logs') $grouped = Query::groupByType($queries); $limit = $grouped['limit'] ?? 25; $offset = $grouped['offset'] ?? 0; - + $audit = new Audit($dbForProject); $resource = 'team/' . $team->getId(); $logs = $audit->getLogsByResource($resource, $limit, $offset); diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Buckets.php b/src/Appwrite/Utopia/Database/Validator/Queries/Buckets.php index e14b74ea3d..af7f7d4380 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Buckets.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Buckets.php @@ -10,7 +10,7 @@ class Buckets extends Collection '$id', '$createdAt', '$updatedAt', - + 'enabled', 'name', 'fileSecurity', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Collections.php b/src/Appwrite/Utopia/Database/Validator/Queries/Collections.php index b429a1b744..ea1a4ef548 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Collections.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Collections.php @@ -10,7 +10,7 @@ class Collections extends Collection '$id', '$createdAt', '$updatedAt', - + 'name', 'enabled', 'documentSecurity' diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Databases.php b/src/Appwrite/Utopia/Database/Validator/Queries/Databases.php index 8fee0492eb..aa6af85c1a 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Databases.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Databases.php @@ -10,7 +10,7 @@ class Databases extends Collection '$id', '$createdAt', '$updatedAt', - + 'name' ]; diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php index 2d4e2ca32d..dec54311c3 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Deployments.php @@ -10,7 +10,7 @@ class Deployments extends Collection '$id', '$createdAt', '$updatedAt', - + 'entrypoint', 'size', 'buildId', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Executions.php b/src/Appwrite/Utopia/Database/Validator/Queries/Executions.php index b53fda8f18..2da974942f 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Executions.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Executions.php @@ -10,7 +10,7 @@ class Executions extends Collection '$id', '$createdAt', '$updatedAt', - + 'trigger', 'status', 'statusCode', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Files.php b/src/Appwrite/Utopia/Database/Validator/Queries/Files.php index 1fb9b39c5a..d66ec04a33 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Files.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Files.php @@ -10,7 +10,7 @@ class Files extends Collection '$id', '$createdAt', '$updatedAt', - + 'name', 'signature', 'mimeType', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php b/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php index 8a08a8371a..ae3e4086c9 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Functions.php @@ -10,7 +10,7 @@ class Functions extends Collection '$id', '$createdAt', '$updatedAt', - + 'name', 'status', 'runtime', diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Teams.php b/src/Appwrite/Utopia/Database/Validator/Queries/Teams.php index 7aae93f65a..7924d2784c 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Teams.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Teams.php @@ -10,7 +10,7 @@ class Teams extends Collection '$id', '$createdAt', '$updatedAt', - + 'name', 'total' ]; diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Users.php b/src/Appwrite/Utopia/Database/Validator/Queries/Users.php index 76321394c1..e8f2507cda 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Users.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Users.php @@ -10,7 +10,7 @@ class Users extends Collection '$id', '$createdAt', '$updatedAt', - + 'name', 'email', 'phone',