mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Run Linter
This commit is contained in:
parent
5c4a92a6d9
commit
70be40468a
1 changed files with 6 additions and 7 deletions
|
|
@ -8,7 +8,6 @@ use Utopia\Database\Database;
|
||||||
use Utopia\Database\DateTime;
|
use Utopia\Database\DateTime;
|
||||||
use Utopia\Database\Document;
|
use Utopia\Database\Document;
|
||||||
use Utopia\Database\Exception\Duplicate;
|
use Utopia\Database\Exception\Duplicate;
|
||||||
use Utopia\Database\Query;
|
|
||||||
use Utopia\Platform\Action;
|
use Utopia\Platform\Action;
|
||||||
use Utopia\Queue\Message;
|
use Utopia\Queue\Message;
|
||||||
use Utopia\System\System;
|
use Utopia\System\System;
|
||||||
|
|
@ -167,7 +166,7 @@ class UsageDump extends Action
|
||||||
case 3:
|
case 3:
|
||||||
$databaseInternalId = $data[0];
|
$databaseInternalId = $data[0];
|
||||||
$collectionInternalId = $data[1];
|
$collectionInternalId = $data[1];
|
||||||
|
|
||||||
$value = $dbForProject->getSizeOfCollection('database_'.$databaseInternalId.'_collection_'.$collectionInternalId);
|
$value = $dbForProject->getSizeOfCollection('database_'.$databaseInternalId.'_collection_'.$collectionInternalId);
|
||||||
|
|
||||||
// Compare with previous value
|
// Compare with previous value
|
||||||
|
|
@ -186,9 +185,9 @@ class UsageDump extends Action
|
||||||
|
|
||||||
// Update Project
|
// Update Project
|
||||||
$projectKey = 'db_storage';
|
$projectKey = 'db_storage';
|
||||||
$updateMetric($dbForProject, $diff, $projectKey, $period, $time);
|
$updateMetric($dbForProject, $diff, $projectKey, $period, $time);
|
||||||
break;
|
break;
|
||||||
// Database Level
|
// Database Level
|
||||||
case 2:
|
case 2:
|
||||||
$databaseInternalId = $data[0];
|
$databaseInternalId = $data[0];
|
||||||
$collections = $dbForProject->find('database_' . $databaseInternalId);
|
$collections = $dbForProject->find('database_' . $databaseInternalId);
|
||||||
|
|
@ -202,12 +201,12 @@ class UsageDump extends Action
|
||||||
// Update Database
|
// Update Database
|
||||||
$databaseKey = $data[0] . '.db_storage';
|
$databaseKey = $data[0] . '.db_storage';
|
||||||
$updateMetric($dbForProject, $diff, $databaseKey, $period, $time);
|
$updateMetric($dbForProject, $diff, $databaseKey, $period, $time);
|
||||||
|
|
||||||
// Update Project
|
// Update Project
|
||||||
$projectKey = 'db_storage';
|
$projectKey = 'db_storage';
|
||||||
$updateMetric($dbForProject, $diff, $projectKey, $period, $time);
|
$updateMetric($dbForProject, $diff, $projectKey, $period, $time);
|
||||||
break;
|
break;
|
||||||
// Project Level
|
// Project Level
|
||||||
case 1:
|
case 1:
|
||||||
// Get all project databases
|
// Get all project databases
|
||||||
$databases = $dbForProject->find('database');
|
$databases = $dbForProject->find('database');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue