mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
formatting
This commit is contained in:
@@ -528,7 +528,7 @@ class Databases extends Action
|
||||
|
||||
foreach ($attributes as $attribute) {
|
||||
$options = $attribute->getAttribute('options', []);
|
||||
if($options['relatedCollection'] === $collectionId){ // Remove if using contains query above
|
||||
if($options['relatedCollection'] === $collectionId) { // Remove if using contains query above
|
||||
$dbForProject->deleteDocument('attributes', $attribute->getId());
|
||||
Console::success('Deleted document "' . $attribute->getId() . '" related collection successfully');
|
||||
$dbForProject->purgeCachedDocument('database_' . $databaseInternalId, $attribute->getAttribute('collectionId'));
|
||||
|
||||
Reference in New Issue
Block a user