mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Format
This commit is contained in:
parent
c03b56c0de
commit
28a6f6de00
1 changed files with 2 additions and 5 deletions
|
|
@ -7,7 +7,6 @@ use Appwrite\Event\Mail;
|
|||
use Appwrite\Event\Realtime;
|
||||
use Appwrite\Template\Template;
|
||||
use Exception;
|
||||
use Utopia\App;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Database\Database;
|
||||
|
|
@ -440,8 +439,7 @@ class Migrations extends Action
|
|||
Document $project,
|
||||
Document $migration,
|
||||
Mail $queueForMails
|
||||
): void
|
||||
{
|
||||
): void {
|
||||
$options = $migration->getAttribute('options', []);
|
||||
$bucketId = $options['bucketId'] ?? null;
|
||||
$filename = $options['filename'] ?? 'export_' . \time();
|
||||
|
|
@ -597,8 +595,7 @@ class Migrations extends Action
|
|||
protected function sanitizeErrors(
|
||||
array $sourceErrors,
|
||||
array $destinationErrors,
|
||||
): array
|
||||
{
|
||||
): array {
|
||||
$errors = [];
|
||||
foreach ([...$sourceErrors, ...$destinationErrors] as $error) {
|
||||
$encoded = \json_decode(\json_encode($error), true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue