1
0
Fork 0
mirror of synced 2024-05-17 11:12:41 +12:00

Remove redundant delete

This commit is contained in:
Jake Barnby 2024-04-23 15:19:30 +12:00
parent 12b55d913b
commit d5335c4398
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -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'));
}