1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00

Fix copy error

This commit is contained in:
Jake Barnby 2023-04-06 02:57:37 +12:00
parent bb9ae6f326
commit deb2751cbf
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -181,8 +181,8 @@ function createAttribute(string $databaseId, string $collectionId, Document $att
$dbForProject->deleteDocument('attributes', $attribute->getId());
throw new Exception(Exception::ATTRIBUTE_LIMIT_EXCEEDED, 'Attribute limit exceeded');
} catch (\Exception $e) {
$dbForProject->deleteCachedDocument('database_' . $db->getInternalId(), $collectionId);
$dbForProject->deleteCachedCollection('database_' . $db->getInternalId() . '_collection_' . $collection->getInternalId());
$dbForProject->deleteCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId());
$dbForProject->deleteCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId());
throw $e;
}