Remove redundant delete
This commit is contained in:
parent
12b55d913b
commit
d5335c4398
|
@ -529,8 +529,6 @@ class Databases extends Action
|
|||
],
|
||||
$dbForProject,
|
||||
function ($attribute) use ($dbForProject, $databaseInternalId) {
|
||||
$dbForProject->deleteDocument('attributes', $attribute->getId());
|
||||
Console::success('Deleted document "' . $attribute->getId() . '" related collection successfully');
|
||||
$dbForProject->purgeCachedDocument('database_' . $databaseInternalId, $attribute->getAttribute('collectionId'));
|
||||
$dbForProject->purgeCachedCollection('database_' . $databaseInternalId . '_collection_' . $attribute->getAttribute('collectionInternalId'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue