Skip to content

Commit e55c542

Browse files
committed
fix codeql
1 parent b8f4fb0 commit e55c542

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/Usage/Adapter/Database.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use Utopia\Database\Document;
77
use Utopia\Database\Exception\Duplicate as DuplicateException;
88
use Utopia\Database\Query as DatabaseQuery;
9-
use Utopia\Exception;
109
use Utopia\Usage\Metric;
1110
use Utopia\Usage\Query;
1211
use Utopia\Usage\Usage;
@@ -71,7 +70,7 @@ public function setup(): void
7170
{
7271
$this->collection = 'usage';
7372
if (! $this->db->exists($this->db->getDatabase())) {
74-
throw new Exception('You need to create the database before running Usage setup');
73+
throw new \Exception('You need to create the database before running Usage setup');
7574
}
7675

7776
// Use column and index definitions from parent SQL adapter
@@ -154,7 +153,7 @@ public function incrementBatch(array $metrics, int $batchSize = 1000): bool
154153
*
155154
* @param array<array{metric: string, value: int, period?: string, tags?: array<string,mixed>}> $metrics
156155
* @return bool
157-
* @throws Exception
156+
* @throws \Exception
158157
*/
159158
public function setBatch(array $metrics, int $batchSize = 1000): bool
160159
{

0 commit comments

Comments
 (0)