From ab2cd297f9940d21c73e3db426a75d108f144208 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 15 Jun 2023 13:45:10 +1200 Subject: [PATCH] Fix imports --- app/workers/databases.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/workers/databases.php b/app/workers/databases.php index 6600fc2c01..f3e678d389 100644 --- a/app/workers/databases.php +++ b/app/workers/databases.php @@ -7,8 +7,6 @@ use Appwrite\Resque\Worker; use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Database\Document; -use Utopia\Database\Helpers\ID; -use Exception; use Utopia\Database\Exception as DatabaseException; require_once __DIR__ . '/../init.php'; @@ -217,7 +215,7 @@ class DatabaseV1 extends Worker try { if ($status !== 'failed') { - if ($type === Database::VAR_RELATIONSHIP) { + if ($type === Database::VAR_RELATIONSHIP) { if ($options['twoWay']) { $relatedCollection = $dbForProject->getDocument('database_' . $database->getInternalId(), $options['relatedCollection']); if ($relatedCollection->isEmpty()) { @@ -310,8 +308,7 @@ class DatabaseV1 extends Worker $index ->setAttribute('attributes', $attributes, Document::SET_TYPE_ASSIGN) ->setAttribute('lengths', $lengths, Document::SET_TYPE_ASSIGN) - ->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN) - ; + ->setAttribute('orders', $orders, Document::SET_TYPE_ASSIGN); // Check if an index exists with the same attributes and orders $exists = false;