mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Run Linters
This commit is contained in:
@@ -58,9 +58,9 @@ $triggerMigration = function (string $migrationId, array $resources, Migration $
|
||||
'resourceData' => '',
|
||||
'errors' => []
|
||||
]);
|
||||
|
||||
|
||||
$dbForProject->createDocument('groupMigrations', $groupDocument);
|
||||
|
||||
|
||||
$queueForMigrations
|
||||
->setType($group)
|
||||
->setMigration($groupDocument)
|
||||
|
||||
@@ -11,10 +11,10 @@ class Migration extends Event
|
||||
protected string $type = '';
|
||||
protected ?Document $migration = null;
|
||||
|
||||
const TYPE_AUTH = 'Auth';
|
||||
const TYPE_DATABASES = 'Databases';
|
||||
const TYPE_STORAGE = 'Storage';
|
||||
const TYPE_FUNCTIONS = 'Functions';
|
||||
public const TYPE_AUTH = 'Auth';
|
||||
public const TYPE_DATABASES = 'Databases';
|
||||
public const TYPE_STORAGE = 'Storage';
|
||||
public const TYPE_FUNCTIONS = 'Functions';
|
||||
|
||||
public function __construct(protected Connection $connection)
|
||||
{
|
||||
|
||||
@@ -17,7 +17,6 @@ use Utopia\Database\Exception\Structure;
|
||||
use Utopia\Database\Helpers\ID;
|
||||
use Utopia\Database\Query;
|
||||
use Utopia\Logger\Log;
|
||||
use Utopia\Logger\Log\Breadcrumb;
|
||||
use Utopia\Migration\Destinations\Appwrite as DestinationsAppwrite;
|
||||
use Utopia\Migration\Exception as MigrationException;
|
||||
use Utopia\Migration\Source;
|
||||
@@ -337,7 +336,7 @@ class Migrations extends Action
|
||||
|
||||
$group->setAttribute('status', 'completed');
|
||||
$this->updateMigrationDocument($group, $project);
|
||||
|
||||
|
||||
// Check if all other groups are finished, if so set parent document to completed aswell.
|
||||
$groupDocuments = $this->dbForProject->find('groupMigrations', [Query::equal('migrationId', [$migration->getId()])]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user