mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Remove extra lines
This commit is contained in:
parent
fb40970eba
commit
06274764c6
1 changed files with 6 additions and 4 deletions
|
|
@ -354,7 +354,6 @@ class Databases extends Action
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
} finally {
|
||||
$dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId);
|
||||
$dbForProject->purgeCachedCollection('database_' . $database->getInternalId() . '_collection_' . $collection->getInternalId());
|
||||
|
|
@ -410,10 +409,14 @@ class Databases extends Action
|
|||
}
|
||||
$dbForProject->updateDocument('indexes', $index->getId(), $index->setAttribute('status', 'available'));
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Console::error($e->getMessage());
|
||||
|
||||
Console::error('shmuel::createIndex');
|
||||
if ($e instanceof DatabaseException) {
|
||||
Console::error('shmuel::createIndex' . $e->getMessage());
|
||||
Console::error('shmuel::createIndex' . $e->getMessage());
|
||||
Console::error('shmuel::createIndex' . $e->getMessage());
|
||||
Console::error('shmuel::createIndex' . $e->getMessage());
|
||||
Console::error('shmuel::createIndex' . $e->getMessage());
|
||||
$index->setAttribute('error', $e->getMessage());
|
||||
}
|
||||
$dbForProject->updateDocument(
|
||||
|
|
@ -428,7 +431,6 @@ class Databases extends Action
|
|||
$this->trigger($database, $collection, $index, $project, $projectId, $events);
|
||||
$dbForProject->purgeCachedDocument('database_' . $database->getInternalId(), $collectionId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue